Enum safe_token_2022::extension::memo_transfer::instruction::RequiredMemoTransfersInstruction
source · #[repr(u8)]
pub enum RequiredMemoTransfersInstruction {
Enable,
Disable,
}
Expand description
Required Memo Transfers 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.
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<RequiredMemoTransfersInstruction> for RequiredMemoTransfersInstruction
impl PartialEq<RequiredMemoTransfersInstruction> 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.