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§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§const LEN: usize = TOKEN_METADATA_ATTRIBUTES_MAX_LEN
const LEN: usize = TOKEN_METADATA_ATTRIBUTES_MAX_LEN
The length, in bytes, of the packed representation
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 Forget for TokenMetadataAttributes
impl Freeze for TokenMetadataAttributes
impl RefUnwindSafe for TokenMetadataAttributes
impl Send for TokenMetadataAttributes
impl Sync for TokenMetadataAttributes
impl Unpin for TokenMetadataAttributes
impl UnsafeUnpin 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