pub struct SplTokenInstructionPolicy {
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 SPL Token Transfer/TransferChecked instructions
allow_burn: boolAllow fee payer to be the owner in SPL Token Burn/BurnChecked instructions
allow_close_account: boolAllow fee payer to be the owner in SPL Token CloseAccount instructions
allow_approve: boolAllow fee payer to be the owner in SPL Token Approve/ApproveChecked instructions
allow_revoke: boolAllow fee payer to be the owner in SPL Token Revoke instructions
Allow fee payer to be the current authority in SPL Token SetAuthority instructions
allow_mint_to: boolAllow fee payer to be the mint authority in SPL Token MintTo/MintToChecked instructions
allow_initialize_mint: boolAllow fee payer to be the mint authority in SPL Token InitializeMint/InitializeMint2 instructions
allow_initialize_account: boolAllow fee payer to be set as the owner in SPL Token InitializeAccount instructions
allow_initialize_multisig: boolAllow fee payer to be a signer in SPL Token InitializeMultisig instructions
allow_freeze_account: boolAllow fee payer to be the freeze authority in SPL Token FreezeAccount instructions
allow_thaw_account: boolAllow fee payer to be the freeze authority in SPL Token ThawAccount instructions
Trait Implementations§
Source§impl Clone for SplTokenInstructionPolicy
impl Clone for SplTokenInstructionPolicy
Source§fn clone(&self) -> SplTokenInstructionPolicy
fn clone(&self) -> SplTokenInstructionPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SplTokenInstructionPolicy
impl Debug for SplTokenInstructionPolicy
Source§impl Default for SplTokenInstructionPolicy
impl Default for SplTokenInstructionPolicy
Source§fn default() -> SplTokenInstructionPolicy
fn default() -> SplTokenInstructionPolicy
Source§impl<'de> Deserialize<'de> for SplTokenInstructionPolicy
impl<'de> Deserialize<'de> for SplTokenInstructionPolicy
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 SplTokenInstructionPolicy
impl RefUnwindSafe for SplTokenInstructionPolicy
impl Send for SplTokenInstructionPolicy
impl Sync for SplTokenInstructionPolicy
impl Unpin for SplTokenInstructionPolicy
impl UnsafeUnpin for SplTokenInstructionPolicy
impl UnwindSafe for SplTokenInstructionPolicy
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