pub struct ZMintMut<'a> {
pub base: ZMintZeroCopyMetaMut<'a>,
pub extensions: Option<Vec<ZExtensionStructMut<'a>>>,
}Expand description
Mutable zero-copy view of Mint with base and optional extensions
Fields§
§base: ZMintZeroCopyMetaMut<'a>§extensions: Option<Vec<ZExtensionStructMut<'a>>>Implementations§
Source§impl ZMintMut<'_>
impl ZMintMut<'_>
Sourcepub fn is_mint_account(&self) -> bool
pub fn is_mint_account(&self) -> bool
Checks if account_type matches Mint discriminator value
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Checks if account is initialized
Sourcepub fn set(
&mut self,
ix_data: &<MintInstructionData as ZeroCopyAt<'_>>::ZeroCopyAt,
mint_decompressed: bool,
) -> Result<(), TokenError>
pub fn set( &mut self, ix_data: &<MintInstructionData as ZeroCopyAt<'_>>::ZeroCopyAt, mint_decompressed: bool, ) -> Result<(), TokenError>
Set all fields of the Mint struct at once
Methods from Deref<Target = ZMintZeroCopyMetaMut<'a>>§
pub fn has_extensions(&self) -> bool
Sourcepub fn is_mint_account(&self) -> bool
pub fn is_mint_account(&self) -> bool
Checks if account_type matches Mint discriminator value
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Checks if account is initialized
Get mint_authority if set (COption discriminator == 1)
Get freeze_authority if set (COption discriminator == 1)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ZMintMut<'a>
impl<'a> RefUnwindSafe for ZMintMut<'a>
impl<'a> Send for ZMintMut<'a>
impl<'a> Sync for ZMintMut<'a>
impl<'a> Unpin for ZMintMut<'a>
impl<'a> !UnwindSafe for ZMintMut<'a>
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> 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