Enum soroban_env_guest::xdr::InflationResult
pub enum InflationResult {
Success(VecM<InflationPayout, _>),
NotTime,
}
Variants§
Success(VecM<InflationPayout, _>)
NotTime
Implementations§
§impl InflationResult
impl InflationResult
pub const VARIANTS: [InflationResultCode; 2] = [InflationResultCode::Success, InflationResultCode::NotTime]
pub const VARIANTS_STR: [&'static str; 2] = ["Success", "NotTime"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> InflationResultCode
pub const fn variants() -> [InflationResultCode; 2]
Trait Implementations§
§impl Clone for InflationResult
impl Clone for InflationResult
§fn clone(&self) -> InflationResult
fn clone(&self) -> InflationResult
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 InflationResult
impl Debug for InflationResult
§impl Discriminant<InflationResultCode> for InflationResult
impl Discriminant<InflationResultCode> for InflationResult
fn discriminant(&self) -> InflationResultCode
§impl Hash for InflationResult
impl Hash for InflationResult
§impl Ord for InflationResult
impl Ord for InflationResult
§impl PartialEq<InflationResult> for InflationResult
impl PartialEq<InflationResult> for InflationResult
§fn eq(&self, other: &InflationResult) -> bool
fn eq(&self, other: &InflationResult) -> bool
§impl PartialOrd<InflationResult> for InflationResult
impl PartialOrd<InflationResult> for InflationResult
§fn partial_cmp(&self, other: &InflationResult) -> Option<Ordering>
fn partial_cmp(&self, other: &InflationResult) -> 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