pub struct AssetReward {
pub asset: String,
pub asset_id: u16,
pub claimed_amount: Decimal,
pub cumulative_amount: Decimal,
pub unclaimed_amount: Decimal,
pub variant: String,
}Expand description
AssetReward
JSON schema
{
"type": "object",
"required": [
"asset",
"assetId",
"claimedAmount",
"cumulativeAmount",
"unclaimedAmount",
"variant"
],
"properties": {
"asset": {
"type": "string"
},
"assetId": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"claimedAmount": {
"type": "string",
"format": "decimal"
},
"cumulativeAmount": {
"type": "string",
"format": "decimal"
},
"unclaimedAmount": {
"type": "string",
"format": "decimal"
},
"variant": {
"type": "string"
}
}
}Fields§
§asset: String§asset_id: u16§claimed_amount: Decimal§cumulative_amount: Decimal§unclaimed_amount: Decimal§variant: StringTrait Implementations§
Source§impl Clone for AssetReward
impl Clone for AssetReward
Source§fn clone(&self) -> AssetReward
fn clone(&self) -> AssetReward
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 AssetReward
impl Debug for AssetReward
Source§impl<'de> Deserialize<'de> for AssetReward
impl<'de> Deserialize<'de> for AssetReward
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 AssetReward
impl RefUnwindSafe for AssetReward
impl Send for AssetReward
impl Sync for AssetReward
impl Unpin for AssetReward
impl UnsafeUnpin for AssetReward
impl UnwindSafe for AssetReward
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