pub struct TokenMetadata {Show 13 fields
pub approved_at: Option<u64>,
pub approved_by: Option<Principal>,
pub burned_at: Option<u64>,
pub burned_by: Option<Principal>,
pub is_burned: bool,
pub minted_at: u64,
pub minted_by: Principal,
pub operator: Option<Principal>,
pub owner: Option<Principal>,
pub properties: Vec<(String, GenericValue)>,
pub token_identifier: TokenIdentifier,
pub transferred_at: Option<u64>,
pub transferred_by: Option<Principal>,
}
Expand description
Metadata for a DIP721 token
Fields§
§approved_at: Option<u64>
§approved_by: Option<Principal>
§burned_at: Option<u64>
§burned_by: Option<Principal>
§is_burned: bool
§minted_at: u64
§minted_by: Principal
§operator: Option<Principal>
§owner: Option<Principal>
§properties: Vec<(String, GenericValue)>
§token_identifier: TokenIdentifier
§transferred_at: Option<u64>
§transferred_by: Option<Principal>
Trait Implementations§
Source§impl CandidType for TokenMetadata
impl CandidType for TokenMetadata
Source§impl Clone for TokenMetadata
impl Clone for TokenMetadata
Source§fn clone(&self) -> TokenMetadata
fn clone(&self) -> TokenMetadata
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 TokenMetadata
impl Debug for TokenMetadata
Source§impl<'de> Deserialize<'de> for TokenMetadata
impl<'de> Deserialize<'de> for TokenMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TokenMetadata
impl PartialEq for TokenMetadata
Source§impl Serialize for TokenMetadata
impl Serialize for TokenMetadata
Source§impl Storable for TokenMetadata
impl Storable for TokenMetadata
Source§const BOUND: Bound = ic_stable_structures::storable::Bound::Unbounded
const BOUND: Bound = ic_stable_structures::storable::Bound::Unbounded
The size bounds of the type.
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl StructuralPartialEq for TokenMetadata
Auto Trait Implementations§
impl Freeze for TokenMetadata
impl RefUnwindSafe for TokenMetadata
impl Send for TokenMetadata
impl Sync for TokenMetadata
impl Unpin for TokenMetadata
impl UnwindSafe for TokenMetadata
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