Enum soroban_env_guest::xdr::Asset
pub enum Asset {
Native,
CreditAlphanum4(AlphaNum4),
CreditAlphanum12(AlphaNum12),
}
Variants§
Implementations§
§impl Asset
impl Asset
pub const VARIANTS: [AssetType; 3] = [AssetType::Native, AssetType::CreditAlphanum4, AssetType::CreditAlphanum12]
pub const VARIANTS_STR: [&'static str; 3] = ["Native", "CreditAlphanum4", "CreditAlphanum12"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> AssetType
pub const fn variants() -> [AssetType; 3]
Trait Implementations§
§impl Discriminant<AssetType> for Asset
impl Discriminant<AssetType> for Asset
fn discriminant(&self) -> AssetType
§impl Ord for Asset
impl Ord for Asset
§impl PartialOrd<Asset> for Asset
impl PartialOrd<Asset> for Asset
§fn partial_cmp(&self, other: &Asset) -> Option<Ordering>
fn partial_cmp(&self, other: &Asset) -> 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 more