pub struct Token2022InstructionPolicy {
pub allow_transfer: bool,
pub allow_burn: bool,
pub allow_close_account: bool,
pub allow_approve: bool,
pub allow_revoke: bool,
pub allow_set_authority: bool,
pub allow_mint_to: bool,
pub allow_initialize_mint: bool,
pub allow_initialize_account: bool,
pub allow_initialize_multisig: bool,
pub allow_freeze_account: bool,
pub allow_thaw_account: bool,
}Fields§
§allow_transfer: boolAllow fee payer to be the owner in Token2022 Transfer/TransferChecked instructions
allow_burn: boolAllow fee payer to be the owner in Token2022 Burn/BurnChecked instructions
allow_close_account: boolAllow fee payer to be the owner in Token2022 CloseAccount instructions
allow_approve: boolAllow fee payer to be the owner in Token2022 Approve/ApproveChecked instructions
allow_revoke: boolAllow fee payer to be the owner in Token2022 Revoke instructions
Allow fee payer to be the current authority in Token2022 SetAuthority instructions
allow_mint_to: boolAllow fee payer to be the mint authority in Token2022 MintTo/MintToChecked instructions
allow_initialize_mint: boolAllow fee payer to be the mint authority in Token2022 InitializeMint/InitializeMint2 instructions
allow_initialize_account: boolAllow fee payer to be set as the owner in Token2022 InitializeAccount instructions
allow_initialize_multisig: boolAllow fee payer to be a signer in Token2022 InitializeMultisig instructions
allow_freeze_account: boolAllow fee payer to be the freeze authority in Token2022 FreezeAccount instructions
allow_thaw_account: boolAllow fee payer to be the freeze authority in Token2022 ThawAccount instructions
Trait Implementations§
Source§impl Clone for Token2022InstructionPolicy
impl Clone for Token2022InstructionPolicy
Source§fn clone(&self) -> Token2022InstructionPolicy
fn clone(&self) -> Token2022InstructionPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Token2022InstructionPolicy
impl Debug for Token2022InstructionPolicy
Source§impl Default for Token2022InstructionPolicy
impl Default for Token2022InstructionPolicy
Source§fn default() -> Token2022InstructionPolicy
fn default() -> Token2022InstructionPolicy
Source§impl<'de> Deserialize<'de> for Token2022InstructionPolicy
impl<'de> Deserialize<'de> for Token2022InstructionPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Token2022InstructionPolicy
impl RefUnwindSafe for Token2022InstructionPolicy
impl Send for Token2022InstructionPolicy
impl Sync for Token2022InstructionPolicy
impl Unpin for Token2022InstructionPolicy
impl UnsafeUnpin for Token2022InstructionPolicy
impl UnwindSafe for Token2022InstructionPolicy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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