Enum soroban_env_guest::xdr::Claimant
pub enum Claimant {
ClaimantTypeV0(ClaimantV0),
}
Expand description
Claimant is an XDR Union defines as:
union Claimant switch (ClaimantType type)
{
case CLAIMANT_TYPE_V0:
struct
{
AccountID destination; // The account that can use this condition
ClaimPredicate predicate; // Claimable if predicate is true
} v0;
};
Variants§
ClaimantTypeV0(ClaimantV0)
Implementations§
§impl Claimant
impl Claimant
pub const VARIANTS: [ClaimantType; 1] = _
pub const VARIANTS_STR: [&'static str; 1] = _
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ClaimantType
pub const fn variants() -> [ClaimantType; 1]
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for Claimant
impl<'arbitrary> Arbitrary<'arbitrary> for Claimant
§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Claimant, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Claimant, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Claimant, Error>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Claimant, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Discriminant<ClaimantType> for Claimant
impl Discriminant<ClaimantType> for Claimant
fn discriminant(&self) -> ClaimantType
§impl Ord for Claimant
impl Ord for Claimant
§impl PartialOrd for Claimant
impl PartialOrd for Claimant
§fn partial_cmp(&self, other: &Claimant) -> Option<Ordering>
fn partial_cmp(&self, other: &Claimant) -> 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 Claimant
impl ReadXdr for Claimant
§fn read_xdr<R>(r: &mut Limited<R>) -> Result<Claimant, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<Claimant, 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<ClaimantType> for Claimant
impl Variants<ClaimantType> for Claimant
fn variants() -> Iter<'static, ClaimantType>
impl Eq for Claimant
impl StructuralEq for Claimant
impl StructuralPartialEq for Claimant
impl Union<ClaimantType> for Claimant
Auto Trait Implementations§
impl RefUnwindSafe for Claimant
impl Send for Claimant
impl Sync for Claimant
impl Unpin for Claimant
impl UnwindSafe for Claimant
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