Struct mpl_token_metadata::state::MasterEditionV2
source · [−]#[repr(C)]pub struct MasterEditionV2 {
pub key: Key,
pub supply: u64,
pub max_supply: Option<u64>,
}
Fields
key: Key
supply: u64
max_supply: Option<u64>
Trait Implementations
sourceimpl BorshDeserialize for MasterEditionV2 where
Key: BorshDeserialize,
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
impl BorshDeserialize for MasterEditionV2 where
Key: BorshDeserialize,
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
sourceimpl BorshSerialize for MasterEditionV2 where
Key: BorshSerialize,
u64: BorshSerialize,
Option<u64>: BorshSerialize,
impl BorshSerialize for MasterEditionV2 where
Key: BorshSerialize,
u64: BorshSerialize,
Option<u64>: BorshSerialize,
sourceimpl Clone for MasterEditionV2
impl Clone for MasterEditionV2
sourcefn clone(&self) -> MasterEditionV2
fn clone(&self) -> MasterEditionV2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MasterEditionV2
impl Debug for MasterEditionV2
sourceimpl Default for MasterEditionV2
impl Default for MasterEditionV2
sourceimpl MasterEdition for MasterEditionV2
impl MasterEdition for MasterEditionV2
fn key(&self) -> Key
fn supply(&self) -> u64
fn set_supply(&mut self, supply: u64)
fn max_supply(&self) -> Option<u64>
fn save(&self, account: &AccountInfo<'_>) -> ProgramResult
sourceimpl PartialEq<MasterEditionV2> for MasterEditionV2
impl PartialEq<MasterEditionV2> for MasterEditionV2
sourcefn eq(&self, other: &MasterEditionV2) -> bool
fn eq(&self, other: &MasterEditionV2) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TokenMetadataAccount for MasterEditionV2
impl TokenMetadataAccount for MasterEditionV2
fn key() -> Key
fn size() -> usize
fn pad_length(buf: &mut Vec<u8>) -> Result<(), MetadataError>
fn safe_deserialize<T: BorshDeserialize>(data: &[u8]) -> Result<T, BorshError>
fn from_account_info<T: BorshDeserialize>(
a: &AccountInfo<'_>
) -> Result<T, ProgramError>
impl Eq for MasterEditionV2
impl StructuralEq for MasterEditionV2
impl StructuralPartialEq for MasterEditionV2
Auto Trait Implementations
impl RefUnwindSafe for MasterEditionV2
impl Send for MasterEditionV2
impl Sync for MasterEditionV2
impl Unpin for MasterEditionV2
impl UnwindSafe for MasterEditionV2
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more