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>
Implementations
sourceimpl MasterEditionV2
impl MasterEditionV2
pub fn from_account_info(
a: &AccountInfo<'_>
) -> Result<MasterEditionV2, ProgramError>
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 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
sourcefn ne(&self, other: &MasterEditionV2) -> bool
fn ne(&self, other: &MasterEditionV2) -> bool
This method tests for !=
.
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more