Enum soroban_env_guest::xdr::next::AllowTrustResult
pub enum AllowTrustResult {
Success,
Malformed,
NoTrustLine,
TrustNotRequired,
CantRevoke,
SelfNotAllowed,
LowReserve,
}
Variants§
Implementations§
§impl AllowTrustResult
impl AllowTrustResult
pub const VARIANTS: [AllowTrustResultCode; 7] = [AllowTrustResultCode::Success, AllowTrustResultCode::Malformed, AllowTrustResultCode::NoTrustLine, AllowTrustResultCode::TrustNotRequired, AllowTrustResultCode::CantRevoke, AllowTrustResultCode::SelfNotAllowed, AllowTrustResultCode::LowReserve]
pub const VARIANTS_STR: [&'static str; 7] = ["Success", "Malformed", "NoTrustLine", "TrustNotRequired", "CantRevoke", "SelfNotAllowed", "LowReserve"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> AllowTrustResultCode
pub const fn variants() -> [AllowTrustResultCode; 7]
Trait Implementations§
§impl Clone for AllowTrustResult
impl Clone for AllowTrustResult
§fn clone(&self) -> AllowTrustResult
fn clone(&self) -> AllowTrustResult
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 AllowTrustResult
impl Debug for AllowTrustResult
§impl Discriminant<AllowTrustResultCode> for AllowTrustResult
impl Discriminant<AllowTrustResultCode> for AllowTrustResult
fn discriminant(&self) -> AllowTrustResultCode
§impl Hash for AllowTrustResult
impl Hash for AllowTrustResult
§impl Ord for AllowTrustResult
impl Ord for AllowTrustResult
§fn cmp(&self, other: &AllowTrustResult) -> Ordering
fn cmp(&self, other: &AllowTrustResult) -> 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<AllowTrustResult> for AllowTrustResult
impl PartialEq<AllowTrustResult> for AllowTrustResult
§fn eq(&self, other: &AllowTrustResult) -> bool
fn eq(&self, other: &AllowTrustResult) -> bool
§impl PartialOrd<AllowTrustResult> for AllowTrustResult
impl PartialOrd<AllowTrustResult> for AllowTrustResult
§fn partial_cmp(&self, other: &AllowTrustResult) -> Option<Ordering>
fn partial_cmp(&self, other: &AllowTrustResult) -> 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