pub struct ZMint<'a> {
pub base: ZMintZeroCopyMeta<'a>,
pub extensions: Option<Vec<ZExtensionStruct<'a>>>,
}Expand description
Zero-copy view of Mint with base and optional extensions
Fields§
§base: ZMintZeroCopyMeta<'a>§extensions: Option<Vec<ZExtensionStruct<'a>>>Implementations§
Source§impl ZMint<'_>
impl ZMint<'_>
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
Methods from Deref<Target = ZMintZeroCopyMeta<'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 ZMint<'a>
impl<'a> RefUnwindSafe for ZMint<'a>
impl<'a> Send for ZMint<'a>
impl<'a> Sync for ZMint<'a>
impl<'a> Unpin for ZMint<'a>
impl<'a> UnwindSafe for ZMint<'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