Enum spl_token_2022::extension::memo_transfer::instruction::RequiredMemoTransfersInstruction
source · [−]#[repr(u8)]
pub enum RequiredMemoTransfersInstruction {
Enable,
Disable,
}
Expand description
Default Account State extension instructions
Variants
Enable
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
Stop requiring memos for transfers into this Account.
Fails if the account does not have the extension 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
sourceimpl Clone for RequiredMemoTransfersInstruction
impl Clone for RequiredMemoTransfersInstruction
sourcefn clone(&self) -> RequiredMemoTransfersInstruction
fn clone(&self) -> RequiredMemoTransfersInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<RequiredMemoTransfersInstruction> for u8
impl From<RequiredMemoTransfersInstruction> for u8
sourcefn from(enum_value: RequiredMemoTransfersInstruction) -> Self
fn from(enum_value: RequiredMemoTransfersInstruction) -> Self
Performs the conversion.
sourceimpl TryFrom<u8> for RequiredMemoTransfersInstruction
impl TryFrom<u8> for RequiredMemoTransfersInstruction
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for RequiredMemoTransfersInstruction
impl TryFromPrimitive for RequiredMemoTransfersInstruction
type Primitive = u8
const NAME: &'static str
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RequiredMemoTransfersInstruction
impl StructuralPartialEq for RequiredMemoTransfersInstruction
Auto Trait Implementations
impl RefUnwindSafe for RequiredMemoTransfersInstruction
impl Send for RequiredMemoTransfersInstruction
impl Sync for RequiredMemoTransfersInstruction
impl Unpin for RequiredMemoTransfersInstruction
impl UnwindSafe for RequiredMemoTransfersInstruction
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more