pub enum ManageSellOfferResult {
Show 13 variants
Success(ManageOfferSuccessResult),
Malformed,
SellNoTrust,
BuyNoTrust,
SellNotAuthorized,
BuyNotAuthorized,
LineFull,
Underfunded,
CrossSelf,
SellNoIssuer,
BuyNoIssuer,
NotFound,
LowReserve,
}
Variants
Success(ManageOfferSuccessResult)
Malformed
SellNoTrust
BuyNoTrust
SellNotAuthorized
BuyNotAuthorized
LineFull
Underfunded
CrossSelf
SellNoIssuer
BuyNoIssuer
NotFound
LowReserve
Implementations
impl ManageSellOfferResult
impl ManageSellOfferResult
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 discriminant(&self) -> ManageSellOfferResultCode
pub const fn variants() -> [ManageSellOfferResultCode; 13]
Trait Implementations
impl Clone for ManageSellOfferResult
impl Clone for ManageSellOfferResult
fn clone(&self) -> ManageSellOfferResult
fn clone(&self) -> ManageSellOfferResult
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 ManageSellOfferResult
impl Debug for ManageSellOfferResult
impl Discriminant<ManageSellOfferResultCode> for ManageSellOfferResult
impl Discriminant<ManageSellOfferResultCode> for ManageSellOfferResult
fn discriminant(&self) -> ManageSellOfferResultCode
impl Hash for ManageSellOfferResult
impl Hash for ManageSellOfferResult
impl Name for ManageSellOfferResult
impl Name for ManageSellOfferResult
impl Ord for ManageSellOfferResult
impl Ord for ManageSellOfferResult
fn cmp(&self, other: &ManageSellOfferResult) -> Ordering
fn cmp(&self, other: &ManageSellOfferResult) -> Ordering
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 PartialEq<ManageSellOfferResult> for ManageSellOfferResult
impl PartialEq<ManageSellOfferResult> for ManageSellOfferResult
fn eq(&self, other: &ManageSellOfferResult) -> bool
fn eq(&self, other: &ManageSellOfferResult) -> bool
impl PartialOrd<ManageSellOfferResult> for ManageSellOfferResult
impl PartialOrd<ManageSellOfferResult> for ManageSellOfferResult
fn partial_cmp(&self, other: &ManageSellOfferResult) -> Option<Ordering>
fn partial_cmp(&self, other: &ManageSellOfferResult) -> 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<ManageSellOfferResultCode> for ManageSellOfferResult
impl Variants<ManageSellOfferResultCode> for ManageSellOfferResult
fn variants() -> Iter<'static, ManageSellOfferResultCode>
impl Eq for ManageSellOfferResult
impl ReadXdr for ManageSellOfferResult
impl StructuralEq for ManageSellOfferResult
impl StructuralPartialEq for ManageSellOfferResult
impl Union<ManageSellOfferResultCode> for ManageSellOfferResult
impl WriteXdr for ManageSellOfferResult
Auto Trait Implementations
impl RefUnwindSafe for ManageSellOfferResult
impl Send for ManageSellOfferResult
impl Sync for ManageSellOfferResult
impl Unpin for ManageSellOfferResult
impl UnwindSafe for ManageSellOfferResult
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