pub enum RevokeSponsorshipResult {
Success,
DoesNotExist,
NotSponsor,
LowReserve,
OnlyTransferable,
Malformed,
}
Variants§
Implementations§
§impl RevokeSponsorshipResult
impl RevokeSponsorshipResult
pub const VARIANTS: [RevokeSponsorshipResultCode; 6] = [RevokeSponsorshipResultCode::Success, RevokeSponsorshipResultCode::DoesNotExist, RevokeSponsorshipResultCode::NotSponsor, RevokeSponsorshipResultCode::LowReserve, RevokeSponsorshipResultCode::OnlyTransferable, RevokeSponsorshipResultCode::Malformed]
pub const VARIANTS_STR: [&'static str; 6] = ["Success", "DoesNotExist", "NotSponsor", "LowReserve", "OnlyTransferable", "Malformed"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> RevokeSponsorshipResultCode
pub const fn variants() -> [RevokeSponsorshipResultCode; 6]
Trait Implementations§
§impl Clone for RevokeSponsorshipResult
impl Clone for RevokeSponsorshipResult
§fn clone(&self) -> RevokeSponsorshipResult
fn clone(&self) -> RevokeSponsorshipResult
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 RevokeSponsorshipResult
impl Debug for RevokeSponsorshipResult
§impl Discriminant<RevokeSponsorshipResultCode> for RevokeSponsorshipResult
impl Discriminant<RevokeSponsorshipResultCode> for RevokeSponsorshipResult
fn discriminant(&self) -> RevokeSponsorshipResultCode
§impl Hash for RevokeSponsorshipResult
impl Hash for RevokeSponsorshipResult
§impl Ord for RevokeSponsorshipResult
impl Ord for RevokeSponsorshipResult
§fn cmp(&self, other: &RevokeSponsorshipResult) -> Ordering
fn cmp(&self, other: &RevokeSponsorshipResult) -> 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<RevokeSponsorshipResult> for RevokeSponsorshipResult
impl PartialEq<RevokeSponsorshipResult> for RevokeSponsorshipResult
§fn eq(&self, other: &RevokeSponsorshipResult) -> bool
fn eq(&self, other: &RevokeSponsorshipResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<RevokeSponsorshipResult> for RevokeSponsorshipResult
impl PartialOrd<RevokeSponsorshipResult> for RevokeSponsorshipResult
§fn partial_cmp(&self, other: &RevokeSponsorshipResult) -> Option<Ordering>
fn partial_cmp(&self, other: &RevokeSponsorshipResult) -> 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