Struct plutus_ledger_api::v1::value::AssetClass
source · pub struct AssetClass {
pub currency_symbol: CurrencySymbol,
pub token_name: TokenName,
}
Expand description
AssetClass is uniquely identifying a specific asset
Fields§
§currency_symbol: CurrencySymbol
§token_name: TokenName
Trait Implementations§
source§impl Clone for AssetClass
impl Clone for AssetClass
source§fn clone(&self) -> AssetClass
fn clone(&self) -> AssetClass
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 AssetClass
impl Debug for AssetClass
source§impl Hash for AssetClass
impl Hash for AssetClass
source§impl IsPlutusData for AssetClass
impl IsPlutusData for AssetClass
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for AssetClass
impl Ord for AssetClass
source§fn cmp(&self, other: &AssetClass) -> Ordering
fn cmp(&self, other: &AssetClass) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AssetClass
impl PartialEq for AssetClass
source§fn eq(&self, other: &AssetClass) -> bool
fn eq(&self, other: &AssetClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AssetClass
impl PartialOrd for AssetClass
source§fn partial_cmp(&self, other: &AssetClass) -> Option<Ordering>
fn partial_cmp(&self, other: &AssetClass) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for AssetClass
impl StructuralPartialEq for AssetClass
Auto Trait Implementations§
impl Freeze for AssetClass
impl RefUnwindSafe for AssetClass
impl Send for AssetClass
impl Sync for AssetClass
impl Unpin for AssetClass
impl UnwindSafe for AssetClass
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