pub struct NewTokenInfo {
pub token_issuer_code_id: u64,
pub subdenom: String,
pub metadata: Option<NewDenomMetadata>,
pub initial_balances: Vec<InitialBalance>,
pub initial_dao_balance: Option<Uint128>,
}
Fields§
§token_issuer_code_id: u64
The code id of the cw-tokenfactory-issuer contract
subdenom: String
The subdenom of the token to create, will also be used as an alias for the denom. The Token Factory denom will have the format of factory/{contract_address}/{subdenom}
metadata: Option<NewDenomMetadata>
Optional metadata for the token, this can additionally be set later.
initial_balances: Vec<InitialBalance>
The initial balances to set for the token, cannot be empty.
initial_dao_balance: Option<Uint128>
Optional balance to mint for the DAO.
Trait Implementations§
Source§impl Clone for NewTokenInfo
impl Clone for NewTokenInfo
Source§fn clone(&self) -> NewTokenInfo
fn clone(&self) -> NewTokenInfo
Returns a copy of the value. Read more
1.0.0 · 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 NewTokenInfo
impl Debug for NewTokenInfo
Source§impl<'de> Deserialize<'de> for NewTokenInfo
impl<'de> Deserialize<'de> for NewTokenInfo
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 JsonSchema for NewTokenInfo
impl JsonSchema for NewTokenInfo
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for NewTokenInfo
impl PartialEq for NewTokenInfo
Source§impl Serialize for NewTokenInfo
impl Serialize for NewTokenInfo
impl StructuralPartialEq for NewTokenInfo
Auto Trait Implementations§
impl Freeze for NewTokenInfo
impl RefUnwindSafe for NewTokenInfo
impl Send for NewTokenInfo
impl Sync for NewTokenInfo
impl Unpin for NewTokenInfo
impl UnwindSafe for NewTokenInfo
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