Enum safe_token_2022::extension::default_account_state::instruction::DefaultAccountStateInstruction
source · #[repr(u8)]
pub enum DefaultAccountStateInstruction {
Initialize,
Update,
}
Expand description
Default Account State extension instructions
Variants§
Initialize
Initialize a new mint with the default state for new Accounts.
Fails if the mint has already been initialized, so must be called before
InitializeMint
.
The mint must have exactly enough space allocated for the base mint (82 bytes), plus 83 bytes of padding, 1 byte reserved for the account type, then space required for this extension, plus any others.
Accounts expected by this instruction:
[writable]
The mint to initialize.
Data expected by this instruction:
crate::state::AccountState
Update
Update the default state for new Accounts. Only supported for mints that include the
DefaultAccountState
extension.
Accounts expected by this instruction:
- Single authority
[writable]
The mint.[signer]
The mint freeze authority.
- Multisignature authority
[writable]
The mint.[]
The mint’s multisignature freeze authority.- ..2+M
[signer]
M signer accounts.
Data expected by this instruction:
crate::state::AccountState
Trait Implementations§
source§impl Clone for DefaultAccountStateInstruction
impl Clone for DefaultAccountStateInstruction
source§fn clone(&self) -> DefaultAccountStateInstruction
fn clone(&self) -> DefaultAccountStateInstruction
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 From<DefaultAccountStateInstruction> for u8
impl From<DefaultAccountStateInstruction> for u8
source§fn from(enum_value: DefaultAccountStateInstruction) -> Self
fn from(enum_value: DefaultAccountStateInstruction) -> Self
Converts to this type from the input type.
source§impl PartialEq<DefaultAccountStateInstruction> for DefaultAccountStateInstruction
impl PartialEq<DefaultAccountStateInstruction> for DefaultAccountStateInstruction
source§fn eq(&self, other: &DefaultAccountStateInstruction) -> bool
fn eq(&self, other: &DefaultAccountStateInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for DefaultAccountStateInstruction
impl TryFrom<u8> for DefaultAccountStateInstruction
§type Error = TryFromPrimitiveError<DefaultAccountStateInstruction>
type Error = TryFromPrimitiveError<DefaultAccountStateInstruction>
The type returned in the event of a conversion error.