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.
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,
sourceimpl TokenMetadataAccount for Edition
impl TokenMetadataAccount for Edition
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 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