#[repr(u8)]pub enum DefaultAccountStateInstruction {
Initialize = 0,
Update = 1,
}
Expand description
Default Account State extension instructions
Variants§
Initialize = 0
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 = 1
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 for DefaultAccountStateInstruction
impl PartialEq for DefaultAccountStateInstruction
Source§fn eq(&self, other: &DefaultAccountStateInstruction) -> bool
fn eq(&self, other: &DefaultAccountStateInstruction) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl TryFrom<u8> for DefaultAccountStateInstruction
impl TryFrom<u8> for DefaultAccountStateInstruction
Source§type Error = TryFromPrimitiveError<DefaultAccountStateInstruction>
type Error = TryFromPrimitiveError<DefaultAccountStateInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DefaultAccountStateInstruction
impl TryFromPrimitive for DefaultAccountStateInstruction
const NAME: &'static str = "DefaultAccountStateInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<DefaultAccountStateInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DefaultAccountStateInstruction
impl StructuralPartialEq for DefaultAccountStateInstruction
Auto Trait Implementations§
impl Freeze for DefaultAccountStateInstruction
impl RefUnwindSafe for DefaultAccountStateInstruction
impl Send for DefaultAccountStateInstruction
impl Sync for DefaultAccountStateInstruction
impl Unpin for DefaultAccountStateInstruction
impl UnwindSafe for DefaultAccountStateInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 more