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