#[repr(i32)]
pub enum AllowTrustResultCode {
Success,
Malformed,
NoTrustLine,
TrustNotRequired,
CantRevoke,
SelfNotAllowed,
LowReserve,
}
Variants
Success
Malformed
NoTrustLine
TrustNotRequired
CantRevoke
SelfNotAllowed
LowReserve
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl 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 Name for AllowTrustResultCode
impl Name 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 · 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<AllowTrustResultCode> for AllowTrustResultCode
impl PartialEq<AllowTrustResultCode> for AllowTrustResultCode
fn eq(&self, other: &AllowTrustResultCode) -> bool
fn eq(&self, other: &AllowTrustResultCode) -> bool
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 · 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 AllowTrustResultCode
impl TryFrom<i32> for AllowTrustResultCode
impl Variants<AllowTrustResultCode> for AllowTrustResult
impl Variants<AllowTrustResultCode> for AllowTrustResult
fn variants() -> Iter<'static, AllowTrustResultCode>
impl Variants<AllowTrustResultCode> for AllowTrustResultCode
impl Variants<AllowTrustResultCode> for AllowTrustResultCode
fn variants() -> Iter<'static, AllowTrustResultCode>
impl Copy for AllowTrustResultCode
impl Enum for AllowTrustResultCode
impl Eq for AllowTrustResultCode
impl ReadXdr for AllowTrustResultCode
impl StructuralEq for AllowTrustResultCode
impl StructuralPartialEq for AllowTrustResultCode
impl Union<AllowTrustResultCode> for AllowTrustResult
impl WriteXdr for AllowTrustResultCode
Auto Trait Implementations
impl RefUnwindSafe for AllowTrustResultCode
impl Send for AllowTrustResultCode
impl Sync for AllowTrustResultCode
impl Unpin for AllowTrustResultCode
impl UnwindSafe for AllowTrustResultCode
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