pub struct TokenConfig {
pub name: String,
pub symbol: String,
pub decimals: u8,
pub total_supply: u128,
pub initial_distribution: InitialDistribution,
pub economics: TokenEconomics,
}Expand description
TNZO token configuration
Fields§
§name: StringToken name
symbol: StringToken symbol
decimals: u8Number of decimals
total_supply: u128Total supply (in smallest unit) - using u128 to prevent overflow
initial_distribution: InitialDistributionInitial distribution
economics: TokenEconomicsToken economics parameters
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 Default for TokenConfig
impl Default 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
impl Eq for TokenConfig
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