Enum plutus_ledger_api::v1::value::CurrencySymbol
source · pub enum CurrencySymbol {
Ada,
NativeToken(MintingPolicyHash),
}
Expand description
Identifier of a currency, which could be either Ada (or tAda), or a native token represented by
it’s minting policy hash. A currency may be associated with multiple AssetClass
es.
Variants§
Ada
NativeToken(MintingPolicyHash)
Trait Implementations§
source§impl Clone for CurrencySymbol
impl Clone for CurrencySymbol
source§fn clone(&self) -> CurrencySymbol
fn clone(&self) -> CurrencySymbol
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 CurrencySymbol
impl Debug for CurrencySymbol
source§impl Hash for CurrencySymbol
impl Hash for CurrencySymbol
source§impl IsPlutusData for CurrencySymbol
impl IsPlutusData for CurrencySymbol
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for CurrencySymbol
impl Ord for CurrencySymbol
source§fn cmp(&self, other: &CurrencySymbol) -> Ordering
fn cmp(&self, other: &CurrencySymbol) -> 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 CurrencySymbol
impl PartialEq for CurrencySymbol
source§fn eq(&self, other: &CurrencySymbol) -> bool
fn eq(&self, other: &CurrencySymbol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CurrencySymbol
impl PartialOrd for CurrencySymbol
source§fn partial_cmp(&self, other: &CurrencySymbol) -> Option<Ordering>
fn partial_cmp(&self, other: &CurrencySymbol) -> 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 CurrencySymbol
impl StructuralPartialEq for CurrencySymbol
Auto Trait Implementations§
impl Freeze for CurrencySymbol
impl RefUnwindSafe for CurrencySymbol
impl Send for CurrencySymbol
impl Sync for CurrencySymbol
impl Unpin for CurrencySymbol
impl UnwindSafe for CurrencySymbol
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