Struct mpl_token_metadata::state::Edition
source · [−]Expand description
All Editions should never have a supply greater than 1. To enforce this, a transfer mint authority instruction will happen when a normal token is turned into an Edition, and in order for a Metadata update authority to do this transaction they will also need to sign the transaction as the Mint authority.
Fields
key: Key
parent: Pubkey
Points at MasterEdition struct
edition: u64
Starting at 0 for master record, this is incremented for each edition minted.
Implementations
sourceimpl Edition
impl Edition
pub fn from_account_info(a: &AccountInfo<'_>) -> Result<Edition, ProgramError>
Trait Implementations
sourceimpl BorshDeserialize for Edition where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for Edition where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for Edition where
Key: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for Edition where
Key: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
impl StructuralPartialEq for Edition
Auto Trait Implementations
impl RefUnwindSafe for Edition
impl Send for Edition
impl Sync for Edition
impl Unpin for Edition
impl UnwindSafe for Edition
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