pub struct TokenMetadataAttributes {
pub is_initialized: bool,
pub mint: Pubkey,
pub data: Vec<(String, String)>,
}Expand description
Optional metadata attributes account - linked to core metadata
Fields§
§is_initialized: boolInitialization flag
mint: PubkeyThe mint address this attributes belong to
data: Vec<(String, String)>Key-value pairs for extensible attributes
Trait Implementations§
Source§impl BorshDeserialize for TokenMetadataAttributes
impl BorshDeserialize for TokenMetadataAttributes
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for TokenMetadataAttributes
impl Clone for TokenMetadataAttributes
Source§fn clone(&self) -> TokenMetadataAttributes
fn clone(&self) -> TokenMetadataAttributes
Returns a duplicate 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 TokenMetadataAttributes
impl Debug for TokenMetadataAttributes
Source§impl IsInitialized for TokenMetadataAttributes
impl IsInitialized for TokenMetadataAttributes
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl Pack for TokenMetadataAttributes
impl Pack for TokenMetadataAttributes
Source§fn get_packed_len() -> usize
fn get_packed_len() -> usize
Get the packed length
Source§fn unpack(input: &[u8]) -> Result<Self, ProgramError>where
Self: IsInitialized,
fn unpack(input: &[u8]) -> Result<Self, ProgramError>where
Self: IsInitialized,
Unpack from slice and check if initialized
Source§fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
Unpack from slice without checking if initialized
Source§impl PartialEq for TokenMetadataAttributes
impl PartialEq for TokenMetadataAttributes
impl Sealed for TokenMetadataAttributes
impl StructuralPartialEq for TokenMetadataAttributes
Auto Trait Implementations§
impl Freeze for TokenMetadataAttributes
impl RefUnwindSafe for TokenMetadataAttributes
impl Send for TokenMetadataAttributes
impl Sync for TokenMetadataAttributes
impl Unpin for TokenMetadataAttributes
impl UnwindSafe for TokenMetadataAttributes
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