#[repr(u8)]pub enum PausableInstruction {
Initialize = 0,
Pause = 1,
Resume = 2,
}
Expand description
Pausable extension instructions
Variants§
Initialize = 0
Initialize the pausable extension for the given mint account
Fails if the account has already been initialized, so must be called
before InitializeMint
.
Accounts expected by this instruction:
[writable]
The mint account to initialize.
Data expected by this instruction:
crate::extension::pausable::instruction::InitializeInstructionData
Pause = 1
Pause minting, burning, and transferring for the mint.
Accounts expected by this instruction:
[writable]
The mint to update.[signer]
The mint’s pause authority.
- Multisignature authority
[writable]
The mint to update.[]
The mint’s multisignature pause authority...2+M
[signer]
M signer accounts.
Resume = 2
Resume minting, burning, and transferring for the mint.
Accounts expected by this instruction:
[writable]
The mint to update.[signer]
The mint’s pause authority.
- Multisignature authority
[writable]
The mint to update.[]
The mint’s multisignature pause authority...2+M
[signer]
M signer accounts.
Trait Implementations§
Source§impl Clone for PausableInstruction
impl Clone for PausableInstruction
Source§fn clone(&self) -> PausableInstruction
fn clone(&self) -> PausableInstruction
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 PausableInstruction
impl Debug for PausableInstruction
Source§impl From<PausableInstruction> for u8
impl From<PausableInstruction> for u8
Source§fn from(enum_value: PausableInstruction) -> Self
fn from(enum_value: PausableInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PausableInstruction
impl PartialEq for PausableInstruction
Source§impl TryFrom<u8> for PausableInstruction
impl TryFrom<u8> for PausableInstruction
Source§type Error = TryFromPrimitiveError<PausableInstruction>
type Error = TryFromPrimitiveError<PausableInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PausableInstruction
impl TryFromPrimitive for PausableInstruction
const NAME: &'static str = "PausableInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<PausableInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PausableInstruction
impl StructuralPartialEq for PausableInstruction
Auto Trait Implementations§
impl Freeze for PausableInstruction
impl RefUnwindSafe for PausableInstruction
impl Send for PausableInstruction
impl Sync for PausableInstruction
impl Unpin for PausableInstruction
impl UnwindSafe for PausableInstruction
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§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