pub struct AssetPolicyInner {
pub asset: String,
pub quantity: String,
}Fields§
§asset: StringConcatenation of the policy_id and hex-encoded asset_name
quantity: StringCurrent asset quantity
Implementations§
source§impl AssetPolicyInner
impl AssetPolicyInner
pub fn new(asset: String, quantity: String) -> AssetPolicyInner
Trait Implementations§
source§impl Clone for AssetPolicyInner
impl Clone for AssetPolicyInner
source§fn clone(&self) -> AssetPolicyInner
fn clone(&self) -> AssetPolicyInner
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 AssetPolicyInner
impl Debug for AssetPolicyInner
source§impl Default for AssetPolicyInner
impl Default for AssetPolicyInner
source§fn default() -> AssetPolicyInner
fn default() -> AssetPolicyInner
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AssetPolicyInner
impl<'de> Deserialize<'de> for AssetPolicyInner
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 AssetPolicyInner
impl PartialEq for AssetPolicyInner
source§fn eq(&self, other: &AssetPolicyInner) -> bool
fn eq(&self, other: &AssetPolicyInner) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AssetPolicyInner
impl Serialize for AssetPolicyInner
impl StructuralPartialEq for AssetPolicyInner
Auto Trait Implementations§
impl RefUnwindSafe for AssetPolicyInner
impl Send for AssetPolicyInner
impl Sync for AssetPolicyInner
impl Unpin for AssetPolicyInner
impl UnwindSafe for AssetPolicyInner
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