Enum spl_token_2022::extension::memo_transfer::instruction::RequiredMemoTransfersInstruction
source · #[repr(u8)]pub enum RequiredMemoTransfersInstruction {
Enable = 0,
Disable = 1,
}
Expand description
Required Memo Transfers extension instructions
Variants§
Enable = 0
Require memos for transfers into this Account. Adds the MemoTransfer extension to the Account, if it doesn’t already exist.
Accounts expected by this instruction:
[writable]
The account to update.[signer]
The account’s owner.
- Multisignature authority
[writable]
The account to update.[]
The account’s multisignature owner.- ..2+M
[signer]
M signer accounts.
Disable = 1
Stop requiring memos for transfers into this Account.
Implicitly initializes the extension in the case where it is not present.
Accounts expected by this instruction:
[writable]
The account to update.[signer]
The account’s owner.
- Multisignature authority
[writable]
The account to update.[]
The account’s multisignature owner.- ..2+M
[signer]
M signer accounts.
Trait Implementations§
source§impl Clone for RequiredMemoTransfersInstruction
impl Clone for RequiredMemoTransfersInstruction
source§fn clone(&self) -> RequiredMemoTransfersInstruction
fn clone(&self) -> RequiredMemoTransfersInstruction
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<RequiredMemoTransfersInstruction> for u8
impl From<RequiredMemoTransfersInstruction> for u8
source§fn from(enum_value: RequiredMemoTransfersInstruction) -> Self
fn from(enum_value: RequiredMemoTransfersInstruction) -> Self
Converts to this type from the input type.
source§impl PartialEq for RequiredMemoTransfersInstruction
impl PartialEq for RequiredMemoTransfersInstruction
source§fn eq(&self, other: &RequiredMemoTransfersInstruction) -> bool
fn eq(&self, other: &RequiredMemoTransfersInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for RequiredMemoTransfersInstruction
impl TryFrom<u8> for RequiredMemoTransfersInstruction
§type Error = TryFromPrimitiveError<RequiredMemoTransfersInstruction>
type Error = TryFromPrimitiveError<RequiredMemoTransfersInstruction>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for RequiredMemoTransfersInstruction
impl TryFromPrimitive for RequiredMemoTransfersInstruction
type Primitive = u8
type Error = TryFromPrimitiveError<RequiredMemoTransfersInstruction>
const NAME: &'static str = "RequiredMemoTransfersInstruction"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RequiredMemoTransfersInstruction
impl StructuralPartialEq for RequiredMemoTransfersInstruction
Auto Trait Implementations§
impl Freeze for RequiredMemoTransfersInstruction
impl RefUnwindSafe for RequiredMemoTransfersInstruction
impl Send for RequiredMemoTransfersInstruction
impl Sync for RequiredMemoTransfersInstruction
impl Unpin for RequiredMemoTransfersInstruction
impl UnwindSafe for RequiredMemoTransfersInstruction
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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