Struct mpl_token_metadata::state::Edition
source · #[repr(C)]pub struct Edition {
pub key: Key,
pub parent: Pubkey,
pub edition: u64,
}
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§
source§impl BorshDeserialize for Editionwhere
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for Editionwhere Key: BorshDeserialize, Pubkey: BorshDeserialize, u64: BorshDeserialize,
source§impl BorshSerialize for Editionwhere
Key: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for Editionwhere Key: BorshSerialize, Pubkey: BorshSerialize, u64: BorshSerialize,
source§impl PartialEq<Edition> for Edition
impl PartialEq<Edition> for Edition
source§impl TokenMetadataAccount for Edition
impl TokenMetadataAccount for Edition
fn key() -> Key
fn size() -> usize
fn is_correct_account_type( data: &[u8], data_type: Key, data_size: usize ) -> bool
fn pad_length(buf: &mut Vec<u8>) -> Result<(), MetadataError>
fn safe_deserialize(data: &[u8]) -> Result<Self, BorshError>
fn from_account_info(a: &AccountInfo<'_>) -> Result<Self, ProgramError>
impl Eq for Edition
impl StructuralEq for Edition
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§
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