Enum soroban_env_guest::xdr::ClaimAtom
pub enum ClaimAtom {
V0(ClaimOfferAtomV0),
OrderBook(ClaimOfferAtom),
LiquidityPool(ClaimLiquidityAtom),
}
Variants
V0(ClaimOfferAtomV0)
OrderBook(ClaimOfferAtom)
LiquidityPool(ClaimLiquidityAtom)
Implementations
impl ClaimAtom
impl ClaimAtom
pub const VARIANTS: [ClaimAtomType; 3] = [ClaimAtomType::V0, ClaimAtomType::OrderBook, ClaimAtomType::LiquidityPool]
pub const VARIANTS_STR: [&'static str; 3] = ["V0", "OrderBook", "LiquidityPool"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ClaimAtomType
pub const fn variants() -> [ClaimAtomType; 3]
Trait Implementations
impl Discriminant<ClaimAtomType> for ClaimAtom
impl Discriminant<ClaimAtomType> for ClaimAtom
fn discriminant(&self) -> ClaimAtomType
impl Ord for ClaimAtom
impl Ord for ClaimAtom
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<ClaimAtom> for ClaimAtom
impl PartialOrd<ClaimAtom> for ClaimAtom
fn partial_cmp(&self, other: &ClaimAtom) -> Option<Ordering>
fn partial_cmp(&self, other: &ClaimAtom) -> Option<Ordering>
1.0.0 · sourcefn 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 Variants<ClaimAtomType> for ClaimAtom
impl Variants<ClaimAtomType> for ClaimAtom
fn variants() -> Iter<'static, ClaimAtomType>
impl Eq for ClaimAtom
impl ReadXdr for ClaimAtom
impl StructuralEq for ClaimAtom
impl StructuralPartialEq for ClaimAtom
impl Union<ClaimAtomType> for ClaimAtom
impl WriteXdr for ClaimAtom
Auto Trait Implementations
impl RefUnwindSafe for ClaimAtom
impl Send for ClaimAtom
impl Sync for ClaimAtom
impl Unpin for ClaimAtom
impl UnwindSafe for ClaimAtom
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