Struct jormungandr_lib::interfaces::account_state::LastRewards
source · pub struct LastRewards {
epoch: Epoch,
reward: Value,
}
Fields§
§epoch: Epoch
§reward: Value
Implementations§
Trait Implementations§
source§impl Clone for LastRewards
impl Clone for LastRewards
source§fn clone(&self) -> LastRewards
fn clone(&self) -> LastRewards
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 LastRewards
impl Debug for LastRewards
source§impl<'de> Deserialize<'de> for LastRewards
impl<'de> Deserialize<'de> for LastRewards
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 From<LastRewards> for LastRewards
impl From<LastRewards> for LastRewards
source§fn from(lr: LastRewards) -> Self
fn from(lr: LastRewards) -> Self
Converts to this type from the input type.
source§impl From<LastRewards> for LastRewards
impl From<LastRewards> for LastRewards
source§impl Hash for LastRewards
impl Hash for LastRewards
source§impl Ord for LastRewards
impl Ord for LastRewards
source§fn cmp(&self, other: &LastRewards) -> Ordering
fn cmp(&self, other: &LastRewards) -> 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
source§impl PartialEq<LastRewards> for LastRewards
impl PartialEq<LastRewards> for LastRewards
source§fn eq(&self, other: &LastRewards) -> bool
fn eq(&self, other: &LastRewards) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LastRewards> for LastRewards
impl PartialOrd<LastRewards> for LastRewards
source§fn partial_cmp(&self, other: &LastRewards) -> Option<Ordering>
fn partial_cmp(&self, other: &LastRewards) -> 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 moresource§impl Serialize for LastRewards
impl Serialize for LastRewards
impl Eq for LastRewards
impl StructuralEq for LastRewards
impl StructuralPartialEq for LastRewards
Auto Trait Implementations§
impl RefUnwindSafe for LastRewards
impl Send for LastRewards
impl Sync for LastRewards
impl Unpin for LastRewards
impl UnwindSafe for LastRewards
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