pub struct MintInfo {Show 17 fields
pub symbol: String,
pub master_authority: Address,
pub master_mint_burn_authority: Address,
pub mint_burn_authorities: Vec<MinterAllowance>,
pub pause_authorities: Vec<Address>,
pub list_authorities: Vec<Address>,
pub black_list: Vec<Address>,
pub white_list: Vec<Address>,
pub metadata_update_authorities: Vec<Address>,
pub bridge_mint_authorities: Vec<Address>,
pub clawback_enabled: bool,
pub clawback_authorities: Vec<Address>,
pub supply: String,
pub decimals: u8,
pub is_paused: bool,
pub is_private: bool,
pub meta: Option<TokenMetadata>,
}Expand description
MintInfo is the struct for token contract. One mint account represents one
token.
Fields§
§symbol: StringThe symbol of the token. Created during token creation and cannot be changed.
master_authority used to create new tokens. The master_authority can
be provided if and only if during token creation. If master_authority
is EMPTY_ADDRESS, the token hasn’t been initialized. When the token is
initialized with master_authority, only the master_authority can
grant other role authorities to others. And the master_authority
serves as the identifier address for the token. All token account’s mint
field will be associated with the mint’s master_authority.
The authority that can grant individual mint_burn_authorities. The
master_mint_burn_authority is created by master_authority, which
delegate the mint authority to other accounts.
The collection of authorities to mint and burn tokens with a given allowance. If the allowance is used up, the authority is not able to mint any more tokens until the allowance is updated.
The allowance to burn is unlimited. Maximum of 20 authorities.
The authorities to pause/unpause token transactions. Maximum of 5 authorities.
The authorities to blacklist/whitelist malicious accounts
black_list: Vec<Address>A blacklist of token accounts
white_list: Vec<Address>A whitelist of token accounts. Only used if the token is private
The authorities for updating the metadata. Maximum of 5 authorities.
The authorities for bridge operations (minting from bridge). Maximum of 5 authorities.
clawback_enabled: boolWhether clawback is enabled for this token.
The authorities that can execute clawback transfers. Maximum of 5 authorities.
supply: StringTotal supply of tokens.
decimals: u8Number of base 10 digits to the right of the decimal place.
is_paused: booltrue if all transactions for this token are paused
is_private: booltrue if this token is private and only whitelisted addresses can
operate with the tokens
meta: Option<TokenMetadata>Metadata of the token
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MintInfo
impl<'de> Deserialize<'de> for MintInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for MintInfo
impl Serialize for MintInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for MintInfo
impl StructuralPartialEq for MintInfo
Auto Trait Implementations§
impl Freeze for MintInfo
impl RefUnwindSafe for MintInfo
impl Send for MintInfo
impl Sync for MintInfo
impl Unpin for MintInfo
impl UnwindSafe for MintInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.