Enum spl_token_metadata_interface::state::Field
source · pub enum Field {
Name,
Symbol,
Uri,
Key(String),
}
Expand description
Fields in the metadata account, used for updating
Variants§
Name
The name field, corresponding to TokenMetadata.name
Symbol
The symbol field, corresponding to TokenMetadata.symbol
Uri
The uri field, corresponding to TokenMetadata.uri
Key(String)
A user field, whose key is given by the associated string
Trait Implementations§
source§impl BorshDeserialize for Fieldwhere
String: BorshDeserialize,
impl BorshDeserialize for Fieldwhere String: BorshDeserialize,
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 BorshSerialize for Fieldwhere
String: BorshSerialize,
impl BorshSerialize for Fieldwhere String: BorshSerialize,
source§impl PartialEq<Field> for Field
impl PartialEq<Field> for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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