pub struct TransferRewardsRequest {
pub amount: String,
pub token: String,
}Expand description
TransferRewardsRequest
JSON schema
{
"type": "object",
"required": [
"amount",
"token"
],
"properties": {
"amount": {
"description": "Amount to transfer, in RAW atomic units of the token.",
"examples": [
"1000000"
],
"type": "string"
},
"token": {
"description": "Reward token contract address (0x-prefixed) to transfer.",
"examples": [
"0x0000000000000000000000000000000000000002"
],
"type": "string"
}
},
"additionalProperties": false
}Fields§
§amount: StringAmount to transfer, in RAW atomic units of the token.
token: StringReward token contract address (0x-prefixed) to transfer.
Trait Implementations§
Source§impl Clone for TransferRewardsRequest
impl Clone for TransferRewardsRequest
Source§fn clone(&self) -> TransferRewardsRequest
fn clone(&self) -> TransferRewardsRequest
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 TransferRewardsRequest
impl Debug for TransferRewardsRequest
Source§impl<'de> Deserialize<'de> for TransferRewardsRequest
impl<'de> Deserialize<'de> for TransferRewardsRequest
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 TransferRewardsRequest
impl RefUnwindSafe for TransferRewardsRequest
impl Send for TransferRewardsRequest
impl Sync for TransferRewardsRequest
impl Unpin for TransferRewardsRequest
impl UnsafeUnpin for TransferRewardsRequest
impl UnwindSafe for TransferRewardsRequest
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