#[non_exhaustive]pub struct HlStakingReward {
pub time: u64,
pub source: String,
pub total_amount: Decimal,
}Expand description
A single staking reward entry (delegatorRewards).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time: u64Reward timestamp in milliseconds.
source: StringReward source (e.g. "delegation", "commission").
total_amount: DecimalTotal reward amount.
Implementations§
Trait Implementations§
Source§impl Clone for HlStakingReward
impl Clone for HlStakingReward
Source§fn clone(&self) -> HlStakingReward
fn clone(&self) -> HlStakingReward
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HlStakingReward
impl Debug for HlStakingReward
Source§impl<'de> Deserialize<'de> for HlStakingReward
impl<'de> Deserialize<'de> for HlStakingReward
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
impl Eq for HlStakingReward
Source§impl PartialEq for HlStakingReward
impl PartialEq for HlStakingReward
Source§fn eq(&self, other: &HlStakingReward) -> bool
fn eq(&self, other: &HlStakingReward) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HlStakingReward
impl Serialize for HlStakingReward
impl StructuralPartialEq for HlStakingReward
Auto Trait Implementations§
impl Freeze for HlStakingReward
impl RefUnwindSafe for HlStakingReward
impl Send for HlStakingReward
impl Sync for HlStakingReward
impl Unpin for HlStakingReward
impl UnsafeUnpin for HlStakingReward
impl UnwindSafe for HlStakingReward
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.