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§
source§impl BorshDeserialize for MasterEditionV2where
Key: BorshDeserialize,
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
impl BorshDeserialize for MasterEditionV2where Key: BorshDeserialize, u64: BorshDeserialize, Option<u64>: BorshDeserialize,
source§impl BorshSerialize for MasterEditionV2where
Key: BorshSerialize,
u64: BorshSerialize,
Option<u64>: BorshSerialize,
impl BorshSerialize for MasterEditionV2where Key: BorshSerialize, u64: BorshSerialize, Option<u64>: BorshSerialize,
source§impl Clone for MasterEditionV2
impl Clone for MasterEditionV2
source§fn clone(&self) -> MasterEditionV2
fn clone(&self) -> MasterEditionV2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MasterEditionV2
impl Debug for MasterEditionV2
source§impl Default for MasterEditionV2
impl Default for MasterEditionV2
source§impl MasterEdition for MasterEditionV2
impl MasterEdition for MasterEditionV2
source§impl PartialEq<MasterEditionV2> for MasterEditionV2
impl PartialEq<MasterEditionV2> for MasterEditionV2
source§fn 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 ==
.source§impl TokenMetadataAccount for MasterEditionV2
impl TokenMetadataAccount for MasterEditionV2
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 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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more