pub enum CreateClaimableBalanceResult {
Success(ClaimableBalanceId),
Malformed,
LowReserve,
NoTrust,
NotAuthorized,
Underfunded,
}
Expand description
CreateClaimableBalanceResult is an XDR Union defines as:
union CreateClaimableBalanceResult switch (
CreateClaimableBalanceResultCode code)
{
case CREATE_CLAIMABLE_BALANCE_SUCCESS:
ClaimableBalanceID balanceID;
case CREATE_CLAIMABLE_BALANCE_MALFORMED:
case CREATE_CLAIMABLE_BALANCE_LOW_RESERVE:
case CREATE_CLAIMABLE_BALANCE_NO_TRUST:
case CREATE_CLAIMABLE_BALANCE_NOT_AUTHORIZED:
case CREATE_CLAIMABLE_BALANCE_UNDERFUNDED:
void;
};
Variants§
Implementations§
§impl CreateClaimableBalanceResult
impl CreateClaimableBalanceResult
pub const VARIANTS: [CreateClaimableBalanceResultCode; 6] = _
pub const VARIANTS_STR: [&'static str; 6] = _
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> CreateClaimableBalanceResultCode
pub const fn variants() -> [CreateClaimableBalanceResultCode; 6]
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for CreateClaimableBalanceResult
impl<'arbitrary> Arbitrary<'arbitrary> for CreateClaimableBalanceResult
§fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<CreateClaimableBalanceResult, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary> ) -> Result<CreateClaimableBalanceResult, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<CreateClaimableBalanceResult, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<CreateClaimableBalanceResult, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Clone for CreateClaimableBalanceResult
impl Clone for CreateClaimableBalanceResult
§fn clone(&self) -> CreateClaimableBalanceResult
fn clone(&self) -> CreateClaimableBalanceResult
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 CreateClaimableBalanceResult
impl Debug for CreateClaimableBalanceResult
§impl Discriminant<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult
impl Discriminant<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult
fn discriminant(&self) -> CreateClaimableBalanceResultCode
§impl Hash for CreateClaimableBalanceResult
impl Hash for CreateClaimableBalanceResult
§impl Ord for CreateClaimableBalanceResult
impl Ord for CreateClaimableBalanceResult
§fn cmp(&self, other: &CreateClaimableBalanceResult) -> Ordering
fn cmp(&self, other: &CreateClaimableBalanceResult) -> 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 for CreateClaimableBalanceResult
impl PartialEq for CreateClaimableBalanceResult
§fn eq(&self, other: &CreateClaimableBalanceResult) -> bool
fn eq(&self, other: &CreateClaimableBalanceResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for CreateClaimableBalanceResult
impl PartialOrd for CreateClaimableBalanceResult
§fn partial_cmp(&self, other: &CreateClaimableBalanceResult) -> Option<Ordering>
fn partial_cmp(&self, other: &CreateClaimableBalanceResult) -> 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§impl ReadXdr for CreateClaimableBalanceResult
impl ReadXdr for CreateClaimableBalanceResult
§fn read_xdr<R>(
r: &mut Limited<R>
) -> Result<CreateClaimableBalanceResult, Error>where
R: Read,
fn read_xdr<R>(
r: &mut Limited<R>
) -> Result<CreateClaimableBalanceResult, Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
§impl Variants<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult
impl Variants<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult
fn variants() -> Iter<'static, CreateClaimableBalanceResultCode>
§impl WriteXdr for CreateClaimableBalanceResult
impl WriteXdr for CreateClaimableBalanceResult
impl Eq for CreateClaimableBalanceResult
impl StructuralEq for CreateClaimableBalanceResult
impl StructuralPartialEq for CreateClaimableBalanceResult
impl Union<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult
Auto Trait Implementations§
impl RefUnwindSafe for CreateClaimableBalanceResult
impl Send for CreateClaimableBalanceResult
impl Sync for CreateClaimableBalanceResult
impl Unpin for CreateClaimableBalanceResult
impl UnwindSafe for CreateClaimableBalanceResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more