Enum diem_sdk::types::account_config::AccountRole[][src]

pub enum AccountRole {
    ParentVASP {
        vasp: ParentVASP,
        credential: Credential,
        vasp_domains: Option<VASPDomains>,
    },
    ChildVASP(ChildVASP),
    DesignatedDealer {
        dd_credential: Credential,
        preburn_balances: DesignatedDealerPreburns,
        designated_dealer: DesignatedDealer,
    },
    TreasuryCompliance {
        vasp_domain_manager: VASPDomainManager,
    },
    Unknown,
}
Expand description

A enum that captures the collection of role-specific resources stored under each account type

Variants

ParentVASP

Fields of ParentVASP

vasp: ParentVASPcredential: Credentialvasp_domains: Option<VASPDomains>
ChildVASP(ChildVASP)

Tuple Fields of ChildVASP

0: ChildVASP
DesignatedDealer

Fields of DesignatedDealer

dd_credential: Credentialpreburn_balances: DesignatedDealerPreburnsdesignated_dealer: DesignatedDealer
TreasuryCompliance

Fields of TreasuryCompliance

vasp_domain_manager: VASPDomainManager
Unknown

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more