pub enum ChangeTrustResult {
Success,
Malformed,
NoIssuer,
InvalidLimit,
LowReserve,
SelfNotAllowed,
TrustLineMissing,
CannotDelete,
NotAuthMaintainLiabilities,
}
Variants
Success
Malformed
NoIssuer
InvalidLimit
LowReserve
SelfNotAllowed
TrustLineMissing
CannotDelete
NotAuthMaintainLiabilities
Implementations
impl ChangeTrustResult
impl ChangeTrustResult
pub const VARIANTS: [ChangeTrustResultCode; 9] = [ChangeTrustResultCode::Success, ChangeTrustResultCode::Malformed, ChangeTrustResultCode::NoIssuer, ChangeTrustResultCode::InvalidLimit, ChangeTrustResultCode::LowReserve, ChangeTrustResultCode::SelfNotAllowed, ChangeTrustResultCode::TrustLineMissing, ChangeTrustResultCode::CannotDelete, ChangeTrustResultCode::NotAuthMaintainLiabilities]
pub const VARIANTS_STR: [&'static str; 9] = ["Success", "Malformed", "NoIssuer", "InvalidLimit", "LowReserve", "SelfNotAllowed", "TrustLineMissing", "CannotDelete", "NotAuthMaintainLiabilities"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ChangeTrustResultCode
pub const fn variants() -> [ChangeTrustResultCode; 9]
Trait Implementations
impl Clone for ChangeTrustResult
impl Clone for ChangeTrustResult
fn clone(&self) -> ChangeTrustResult
fn clone(&self) -> ChangeTrustResult
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 ChangeTrustResult
impl Debug for ChangeTrustResult
impl Discriminant<ChangeTrustResultCode> for ChangeTrustResult
impl Discriminant<ChangeTrustResultCode> for ChangeTrustResult
fn discriminant(&self) -> ChangeTrustResultCode
impl Hash for ChangeTrustResult
impl Hash for ChangeTrustResult
impl Name for ChangeTrustResult
impl Name for ChangeTrustResult
impl Ord for ChangeTrustResult
impl Ord for ChangeTrustResult
fn cmp(&self, other: &ChangeTrustResult) -> Ordering
fn cmp(&self, other: &ChangeTrustResult) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<ChangeTrustResult> for ChangeTrustResult
impl PartialEq<ChangeTrustResult> for ChangeTrustResult
fn eq(&self, other: &ChangeTrustResult) -> bool
fn eq(&self, other: &ChangeTrustResult) -> bool
impl PartialOrd<ChangeTrustResult> for ChangeTrustResult
impl PartialOrd<ChangeTrustResult> for ChangeTrustResult
fn partial_cmp(&self, other: &ChangeTrustResult) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeTrustResult) -> 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<ChangeTrustResultCode> for ChangeTrustResult
impl Variants<ChangeTrustResultCode> for ChangeTrustResult
fn variants() -> Iter<'static, ChangeTrustResultCode>
impl Eq for ChangeTrustResult
impl ReadXdr for ChangeTrustResult
impl StructuralEq for ChangeTrustResult
impl StructuralPartialEq for ChangeTrustResult
impl Union<ChangeTrustResultCode> for ChangeTrustResult
impl WriteXdr for ChangeTrustResult
Auto Trait Implementations
impl RefUnwindSafe for ChangeTrustResult
impl Send for ChangeTrustResult
impl Sync for ChangeTrustResult
impl Unpin for ChangeTrustResult
impl UnwindSafe for ChangeTrustResult
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