pub struct ZMintZeroCopyMetaMut<'a> {
pub metadata: <MintMetadata as ZeroCopyAtMut<'a>>::ZeroCopyAtMut,
pub reserved: Ref<&'a mut [u8], [u8; 16]>,
pub account_type: <u8 as ZeroCopyAtMut<'a>>::ZeroCopyAtMut,
pub compression: <CompressionInfo as ZeroCopyAtMut<'a>>::ZeroCopyAtMut,
pub has_extensions: <bool as ZeroCopyAtMut<'a>>::ZeroCopyAtMut,
/* private fields */
}Fields§
§metadata: <MintMetadata as ZeroCopyAtMut<'a>>::ZeroCopyAtMut§reserved: Ref<&'a mut [u8], [u8; 16]>§account_type: <u8 as ZeroCopyAtMut<'a>>::ZeroCopyAtMut§compression: <CompressionInfo as ZeroCopyAtMut<'a>>::ZeroCopyAtMut§has_extensions: <bool as ZeroCopyAtMut<'a>>::ZeroCopyAtMutImplementations§
Source§impl<'a> ZMintZeroCopyMetaMut<'a>
impl<'a> ZMintZeroCopyMetaMut<'a>
pub fn has_extensions(&self) -> bool
Source§impl ZMintZeroCopyMetaMut<'_>
impl ZMintZeroCopyMetaMut<'_>
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)
Set mint_authority using COption format
Get freeze_authority if set (COption discriminator == 1)
Set freeze_authority using COption format
Trait Implementations§
Source§impl<'a> Debug for ZMintZeroCopyMetaMut<'a>
impl<'a> Debug for ZMintZeroCopyMetaMut<'a>
Source§impl<'a> Deref for ZMintZeroCopyMetaMut<'a>
impl<'a> Deref for ZMintZeroCopyMetaMut<'a>
Auto Trait Implementations§
impl<'a> Freeze for ZMintZeroCopyMetaMut<'a>
impl<'a> RefUnwindSafe for ZMintZeroCopyMetaMut<'a>
impl<'a> Send for ZMintZeroCopyMetaMut<'a>
impl<'a> Sync for ZMintZeroCopyMetaMut<'a>
impl<'a> Unpin for ZMintZeroCopyMetaMut<'a>
impl<'a> !UnwindSafe for ZMintZeroCopyMetaMut<'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