Enum soroban_env_guest::xdr::next::AllowTrustResultCode
pub enum AllowTrustResultCode {
Success,
Malformed,
NoTrustLine,
TrustNotRequired,
CantRevoke,
SelfNotAllowed,
LowReserve,
}
Variants§
Implementations§
§impl AllowTrustResultCode
impl AllowTrustResultCode
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 variants() -> [AllowTrustResultCode; 7]
Trait Implementations§
§impl Clone for AllowTrustResultCode
impl Clone for AllowTrustResultCode
§fn clone(&self) -> AllowTrustResultCode
fn clone(&self) -> AllowTrustResultCode
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 AllowTrustResultCode
impl Debug for AllowTrustResultCode
§impl Discriminant<AllowTrustResultCode> for AllowTrustResult
impl Discriminant<AllowTrustResultCode> for AllowTrustResult
fn discriminant(&self) -> AllowTrustResultCode
§impl Display for AllowTrustResultCode
impl Display for AllowTrustResultCode
§impl Hash for AllowTrustResultCode
impl Hash for AllowTrustResultCode
§impl Ord for AllowTrustResultCode
impl Ord for AllowTrustResultCode
§fn cmp(&self, other: &AllowTrustResultCode) -> Ordering
fn cmp(&self, other: &AllowTrustResultCode) -> 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<AllowTrustResultCode> for AllowTrustResultCode
impl PartialEq<AllowTrustResultCode> for AllowTrustResultCode
§fn eq(&self, other: &AllowTrustResultCode) -> bool
fn eq(&self, other: &AllowTrustResultCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<AllowTrustResultCode> for AllowTrustResultCode
impl PartialOrd<AllowTrustResultCode> for AllowTrustResultCode
§fn partial_cmp(&self, other: &AllowTrustResultCode) -> Option<Ordering>
fn partial_cmp(&self, other: &AllowTrustResultCode) -> 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