pub struct Reward {
pub author: Address,
pub value: U256,
pub reward_type: RewardType,
}
Expand description
Reward action
Fields§
Author’s address.
value: U256
Reward amount.
reward_type: RewardType
Reward type.
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
impl StructuralPartialEq for Reward
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