pub struct TokenConfig {Show 14 fields
pub name: String,
pub symbol: String,
pub decimals: u8,
pub total_supply: u128,
pub mint_authority: Option<AccountId>,
pub freeze_authority: Option<AccountId>,
pub transfer_fee_bps: u16,
pub transfer_fee_recipient: Option<AccountId>,
pub transfer_hook: Option<AccountId>,
pub transfer_hook_gas: u64,
pub max_supply: Option<u128>,
pub non_transferable: bool,
pub metadata_uri: Option<String>,
pub permanent_delegate: Option<AccountId>,
}Fields§
§name: String§symbol: String§decimals: u8§total_supply: u128§transfer_fee_bps: u16§transfer_fee_recipient: Option<AccountId>§transfer_hook: Option<AccountId>§transfer_hook_gas: u64§max_supply: Option<u128>§non_transferable: bool§metadata_uri: Option<String>§permanent_delegate: Option<AccountId>Trait Implementations§
Source§impl Clone for TokenConfig
impl Clone for TokenConfig
Source§fn clone(&self) -> TokenConfig
fn clone(&self) -> TokenConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenConfig
impl Debug for TokenConfig
Source§impl<'de> Deserialize<'de> for TokenConfig
impl<'de> Deserialize<'de> for TokenConfig
Source§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
Source§impl PartialEq for TokenConfig
impl PartialEq for TokenConfig
Source§fn eq(&self, other: &TokenConfig) -> bool
fn eq(&self, other: &TokenConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TokenConfig
impl Serialize for TokenConfig
impl StructuralPartialEq for TokenConfig
Auto Trait Implementations§
impl Freeze for TokenConfig
impl RefUnwindSafe for TokenConfig
impl Send for TokenConfig
impl Sync for TokenConfig
impl Unpin for TokenConfig
impl UnsafeUnpin for TokenConfig
impl UnwindSafe for TokenConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more