Enum soroban_env_guest::xdr::Asset
[−]pub enum Asset {
Native,
CreditAlphanum4(AlphaNum4),
CreditAlphanum12(AlphaNum12),
}
Variants
Native
CreditAlphanum4(AlphaNum4)
CreditAlphanum12(AlphaNum12)
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
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<Asset> for Asset
impl PartialOrd<Asset> for Asset
impl Eq for Asset
impl ReadXdr for Asset
impl StructuralEq for Asset
impl StructuralPartialEq for Asset
impl Union<AssetType> for Asset
impl WriteXdr for Asset
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more