Struct diem_types::account_config::resources::currency_info::CurrencyInfoResource [−][src]
pub struct CurrencyInfoResource { /* fields omitted */ }
Expand description
Struct that represents a CurrencyInfo resource
Implementations
pub fn new(
total_value: u128,
preburn_value: u64,
to_xdx_exchange_rate: u64,
is_synthetic: bool,
scaling_factor: u64,
fractional_part: u64,
currency_code: Identifier,
can_mint: bool,
mint_events: EventHandle,
burn_events: EventHandle,
preburn_events: EventHandle,
cancel_burn_events: EventHandle,
exchange_rate_update_events: EventHandle
) -> Self
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CurrencyInfoResource
impl Send for CurrencyInfoResource
impl Sync for CurrencyInfoResource
impl Unpin for CurrencyInfoResource
impl UnwindSafe for CurrencyInfoResource
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.