Enum diem_sdk::client::views::AccountRoleView [−][src]
pub enum AccountRoleView {
ChildVASP {
parent_vasp_address: AccountAddress,
},
ParentVASP {
human_name: String,
base_url: String,
expiration_time: u64,
compliance_key: BytesView,
num_children: u64,
compliance_key_rotation_events_key: EventKey,
base_url_rotation_events_key: EventKey,
vasp_domains: Option<Vec<DiemIdVaspDomainIdentifier, Global>>,
},
DesignatedDealer {
human_name: String,
base_url: String,
expiration_time: u64,
compliance_key: BytesView,
preburn_balances: Vec<AmountView, Global>,
received_mint_events_key: EventKey,
compliance_key_rotation_events_key: EventKey,
base_url_rotation_events_key: EventKey,
preburn_queues: Option<Vec<PreburnQueueView, Global>>,
},
TreasuryCompliance {
vasp_domain_events_key: Option<EventKey>,
},
Unknown,
}Variants
Fields of ChildVASP
parent_vasp_address: AccountAddressFields of ParentVASP
Fields of DesignatedDealer
The Unknown variant is deserialized by the client if it sees a variant that it doesn’t know about
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountRoleView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountRoleView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AccountRoleView
impl Send for AccountRoleView
impl Sync for AccountRoleView
impl Unpin for AccountRoleView
impl UnwindSafe for AccountRoleView
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.