Struct mpl_token_metadata::state::EditionMarkerV2
source · #[repr(C)]pub struct EditionMarkerV2 {
pub key: Key,
pub ledger: Vec<u8>,
}
Fields§
§key: Key
§ledger: Vec<u8>
Implementations§
source§impl EditionMarkerV2
impl EditionMarkerV2
pub fn get_index_and_mask(edition: u64) -> Result<(usize, u8), ProgramError>
pub fn edition_taken(&self, edition: u64) -> Result<bool, ProgramError>
pub fn insert_edition(&mut self, edition: u64) -> ProgramResult
pub fn save<'a>( self, account_info: &AccountInfo<'a>, payer_info: &AccountInfo<'a>, system_info: &AccountInfo<'a> ) -> ProgramResult
Trait Implementations§
source§impl BorshDeserialize for EditionMarkerV2where
Key: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for EditionMarkerV2where Key: BorshDeserialize, Vec<u8>: BorshDeserialize,
source§impl BorshSerialize for EditionMarkerV2where
Key: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for EditionMarkerV2where Key: BorshSerialize, Vec<u8>: BorshSerialize,
source§impl Clone for EditionMarkerV2
impl Clone for EditionMarkerV2
source§fn clone(&self) -> EditionMarkerV2
fn clone(&self) -> EditionMarkerV2
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 EditionMarkerV2
impl Debug for EditionMarkerV2
source§impl Default for EditionMarkerV2
impl Default for EditionMarkerV2
source§impl PartialEq<EditionMarkerV2> for EditionMarkerV2
impl PartialEq<EditionMarkerV2> for EditionMarkerV2
source§fn eq(&self, other: &EditionMarkerV2) -> bool
fn eq(&self, other: &EditionMarkerV2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TokenMetadataAccount for EditionMarkerV2
impl TokenMetadataAccount for EditionMarkerV2
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 EditionMarkerV2
impl StructuralEq for EditionMarkerV2
impl StructuralPartialEq for EditionMarkerV2
Auto Trait Implementations§
impl RefUnwindSafe for EditionMarkerV2
impl Send for EditionMarkerV2
impl Sync for EditionMarkerV2
impl Unpin for EditionMarkerV2
impl UnwindSafe for EditionMarkerV2
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