pub enum ClaimableBalanceId {
ClaimableBalanceIdTypeV0(Hash),
}
Expand description
ClaimableBalanceId is an XDR Union defines as:
union ClaimableBalanceID switch (ClaimableBalanceIDType type)
{
case CLAIMABLE_BALANCE_ID_TYPE_V0:
Hash v0;
};
Variants§
Implementations§
§impl ClaimableBalanceId
impl ClaimableBalanceId
pub const VARIANTS: [ClaimableBalanceIdType; 1] = _
pub const VARIANTS_STR: [&'static str; 1] = _
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ClaimableBalanceIdType
pub const fn variants() -> [ClaimableBalanceIdType; 1]
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for ClaimableBalanceId
impl<'arbitrary> Arbitrary<'arbitrary> for ClaimableBalanceId
§fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<ClaimableBalanceId, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary> ) -> Result<ClaimableBalanceId, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<ClaimableBalanceId, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<ClaimableBalanceId, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Clone for ClaimableBalanceId
impl Clone for ClaimableBalanceId
§fn clone(&self) -> ClaimableBalanceId
fn clone(&self) -> ClaimableBalanceId
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 ClaimableBalanceId
impl Debug for ClaimableBalanceId
§impl Discriminant<ClaimableBalanceIdType> for ClaimableBalanceId
impl Discriminant<ClaimableBalanceIdType> for ClaimableBalanceId
fn discriminant(&self) -> ClaimableBalanceIdType
§impl Hash for ClaimableBalanceId
impl Hash for ClaimableBalanceId
§impl Ord for ClaimableBalanceId
impl Ord for ClaimableBalanceId
§fn cmp(&self, other: &ClaimableBalanceId) -> Ordering
fn cmp(&self, other: &ClaimableBalanceId) -> 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 ClaimableBalanceId
impl PartialEq for ClaimableBalanceId
§fn eq(&self, other: &ClaimableBalanceId) -> bool
fn eq(&self, other: &ClaimableBalanceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ClaimableBalanceId
impl PartialOrd for ClaimableBalanceId
§fn partial_cmp(&self, other: &ClaimableBalanceId) -> Option<Ordering>
fn partial_cmp(&self, other: &ClaimableBalanceId) -> 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 ClaimableBalanceId
impl ReadXdr for ClaimableBalanceId
§fn read_xdr<R>(r: &mut Limited<R>) -> Result<ClaimableBalanceId, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<ClaimableBalanceId, 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<ClaimableBalanceIdType> for ClaimableBalanceId
impl Variants<ClaimableBalanceIdType> for ClaimableBalanceId
fn variants() -> Iter<'static, ClaimableBalanceIdType>
§impl WriteXdr for ClaimableBalanceId
impl WriteXdr for ClaimableBalanceId
impl Eq for ClaimableBalanceId
impl StructuralEq for ClaimableBalanceId
impl StructuralPartialEq for ClaimableBalanceId
impl Union<ClaimableBalanceIdType> for ClaimableBalanceId
Auto Trait Implementations§
impl RefUnwindSafe for ClaimableBalanceId
impl Send for ClaimableBalanceId
impl Sync for ClaimableBalanceId
impl Unpin for ClaimableBalanceId
impl UnwindSafe for ClaimableBalanceId
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