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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl 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 Ord for ManageSellOfferResult
impl Ord for ManageSellOfferResult
§fn cmp(&self, other: &ManageSellOfferResult) -> Ordering
fn cmp(&self, other: &ManageSellOfferResult) -> Ordering
1.21.0 · source§fn 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
§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 · 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