Struct coreledger_backend::model::Asset
pub struct Asset {
pub issuer: Principal,
pub created_on: Option<u64>,
pub hash: Option<Bytes32>,
pub bitwise: bool,
}
Expand description
Details of the asset.
Fields§
§issuer: Principal
Address of the asset issuer.
created_on: Option<u64>
Unix-time timestamp in nanoseconds when the asset was activated.
hash: Option<Bytes32>
Hash of the asset document.
bitwise: bool
Indicates whether the asset is treated as bitwise.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Asset
impl<'de> Deserialize<'de> for Asset
§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
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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