pub struct MixNodeDetails {
pub bond_information: MixNodeBond,
pub rewarding_details: MixNodeRewarding,
pub pending_changes: PendingMixNodeChanges,
}
Fields§
§bond_information: MixNodeBond
§rewarding_details: MixNodeRewarding
§pending_changes: PendingMixNodeChanges
Implementations§
source§impl MixNodeDetails
impl MixNodeDetails
pub fn new( bond_information: MixNodeBond, rewarding_details: MixNodeRewarding, pending_changes: PendingMixNodeChanges ) -> Self
pub fn mix_id(&self) -> MixId
pub fn is_unbonding(&self) -> bool
pub fn original_pledge(&self) -> &Coin
pub fn pending_operator_reward(&self) -> Coin
pub fn pending_detailed_operator_reward(&self) -> StdResult<Decimal>
pub fn total_stake(&self) -> Decimal
pub fn pending_pledge_change(&self) -> Option<EpochEventId>
Trait Implementations§
source§impl Clone for MixNodeDetails
impl Clone for MixNodeDetails
source§fn clone(&self) -> MixNodeDetails
fn clone(&self) -> MixNodeDetails
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 moresource§impl Debug for MixNodeDetails
impl Debug for MixNodeDetails
source§impl<'de> Deserialize<'de> for MixNodeDetails
impl<'de> Deserialize<'de> for MixNodeDetails
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for MixNodeDetails
impl JsonSchema for MixNodeDetails
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<MixNodeDetails> for MixNodeDetails
impl PartialEq<MixNodeDetails> for MixNodeDetails
source§fn eq(&self, other: &MixNodeDetails) -> bool
fn eq(&self, other: &MixNodeDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MixNodeDetails
impl Serialize for MixNodeDetails
impl StructuralPartialEq for MixNodeDetails
Auto Trait Implementations§
impl RefUnwindSafe for MixNodeDetails
impl Send for MixNodeDetails
impl Sync for MixNodeDetails
impl Unpin for MixNodeDetails
impl UnwindSafe for MixNodeDetails
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