pub enum ManageSellOfferResultCode {
Show 13 variants
Success,
Malformed,
SellNoTrust,
BuyNoTrust,
SellNotAuthorized,
BuyNotAuthorized,
LineFull,
Underfunded,
CrossSelf,
SellNoIssuer,
BuyNoIssuer,
NotFound,
LowReserve,
}
Variants
Success
Malformed
SellNoTrust
BuyNoTrust
SellNotAuthorized
BuyNotAuthorized
LineFull
Underfunded
CrossSelf
SellNoIssuer
BuyNoIssuer
NotFound
LowReserve
Implementations
impl ManageSellOfferResultCode
impl ManageSellOfferResultCode
pub const VARIANTS: [ManageSellOfferResultCode; 13] = [ManageSellOfferResultCode::Success, ManageSellOfferResultCode::Malformed, ManageSellOfferResultCode::SellNoTrust, ManageSellOfferResultCode::BuyNoTrust, ManageSellOfferResultCode::SellNotAuthorized, ManageSellOfferResultCode::BuyNotAuthorized, ManageSellOfferResultCode::LineFull, ManageSellOfferResultCode::Underfunded, ManageSellOfferResultCode::CrossSelf, ManageSellOfferResultCode::SellNoIssuer, ManageSellOfferResultCode::BuyNoIssuer, ManageSellOfferResultCode::NotFound, ManageSellOfferResultCode::LowReserve]
pub const VARIANTS_STR: [&'static str; 13] = ["Success", "Malformed", "SellNoTrust", "BuyNoTrust", "SellNotAuthorized", "BuyNotAuthorized", "LineFull", "Underfunded", "CrossSelf", "SellNoIssuer", "BuyNoIssuer", "NotFound", "LowReserve"]
pub const fn name(&self) -> &'static str
pub const fn variants() -> [ManageSellOfferResultCode; 13]
Trait Implementations
impl Clone for ManageSellOfferResultCode
impl Clone for ManageSellOfferResultCode
fn clone(&self) -> ManageSellOfferResultCode
fn clone(&self) -> ManageSellOfferResultCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for ManageSellOfferResultCode
impl Debug for ManageSellOfferResultCode
impl Discriminant<ManageSellOfferResultCode> for ManageSellOfferResult
impl Discriminant<ManageSellOfferResultCode> for ManageSellOfferResult
fn discriminant(&self) -> ManageSellOfferResultCode
impl Display for ManageSellOfferResultCode
impl Display for ManageSellOfferResultCode
impl Hash for ManageSellOfferResultCode
impl Hash for ManageSellOfferResultCode
impl Name for ManageSellOfferResultCode
impl Name for ManageSellOfferResultCode
impl Ord for ManageSellOfferResultCode
impl Ord for ManageSellOfferResultCode
fn cmp(&self, other: &ManageSellOfferResultCode) -> Ordering
fn cmp(&self, other: &ManageSellOfferResultCode) -> Ordering
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 PartialEq<ManageSellOfferResultCode> for ManageSellOfferResultCode
impl PartialEq<ManageSellOfferResultCode> for ManageSellOfferResultCode
fn eq(&self, other: &ManageSellOfferResultCode) -> bool
fn eq(&self, other: &ManageSellOfferResultCode) -> bool
impl PartialOrd<ManageSellOfferResultCode> for ManageSellOfferResultCode
impl PartialOrd<ManageSellOfferResultCode> for ManageSellOfferResultCode
fn partial_cmp(&self, other: &ManageSellOfferResultCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ManageSellOfferResultCode) -> 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 TryFrom<i32> for ManageSellOfferResultCode
impl TryFrom<i32> for ManageSellOfferResultCode
impl Variants<ManageSellOfferResultCode> for ManageSellOfferResult
impl Variants<ManageSellOfferResultCode> for ManageSellOfferResult
fn variants() -> Iter<'static, ManageSellOfferResultCode>
impl Variants<ManageSellOfferResultCode> for ManageSellOfferResultCode
impl Variants<ManageSellOfferResultCode> for ManageSellOfferResultCode
fn variants() -> Iter<'static, ManageSellOfferResultCode>
impl Copy for ManageSellOfferResultCode
impl Enum for ManageSellOfferResultCode
impl Eq for ManageSellOfferResultCode
impl ReadXdr for ManageSellOfferResultCode
impl StructuralEq for ManageSellOfferResultCode
impl StructuralPartialEq for ManageSellOfferResultCode
impl Union<ManageSellOfferResultCode> for ManageSellOfferResult
impl WriteXdr for ManageSellOfferResultCode
Auto Trait Implementations
impl RefUnwindSafe for ManageSellOfferResultCode
impl Send for ManageSellOfferResultCode
impl Sync for ManageSellOfferResultCode
impl Unpin for ManageSellOfferResultCode
impl UnwindSafe for ManageSellOfferResultCode
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