pub struct Reward {
pub account: String,
pub amount: Hnt,
pub block: i64,
pub gateway: String,
pub hash: String,
pub timestamp: DateTime<Utc>,
}
Expand description
Reward for validator
Fields§
§account: String
The owner address is the base58 check-encoded public key of the owner’s wallet address.
amount: Hnt
The reward amount.
block: i64
The block the reward was earned in.
gateway: String
The validator address is the base58 check-encoded public key of the validator.
hash: String
The transaction hash of the reward.
timestamp: DateTime<Utc>
The timestamp of the rewards.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reward
impl<'de> Deserialize<'de> for Reward
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
Auto Trait Implementations§
impl Freeze for Reward
impl RefUnwindSafe for Reward
impl Send for Reward
impl Sync for Reward
impl Unpin for Reward
impl UnwindSafe for Reward
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