pub struct UserDeposit {
pub amount: Decimal,
pub amount_notional: Decimal,
pub asset: String,
pub asset_id: u16,
pub event_number: u64,
pub time: i64,
pub tx_hash: String,
}Expand description
UserDeposit
JSON schema
{
"type": "object",
"required": [
"amount",
"amountNotional",
"asset",
"assetId",
"eventNumber",
"time",
"txHash"
],
"properties": {
"amount": {
"type": "string",
"format": "decimal"
},
"amountNotional": {
"type": "string",
"format": "decimal"
},
"asset": {
"type": "string"
},
"assetId": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"eventNumber": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"time": {
"type": "integer",
"format": "int64"
},
"txHash": {
"type": "string"
}
}
}Fields§
§amount: Decimal§amount_notional: Decimal§asset: String§asset_id: u16§event_number: u64§time: i64§tx_hash: StringTrait Implementations§
Source§impl Clone for UserDeposit
impl Clone for UserDeposit
Source§fn clone(&self) -> UserDeposit
fn clone(&self) -> UserDeposit
Returns a duplicate of the value. Read more
1.0.0 · 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 UserDeposit
impl Debug for UserDeposit
Source§impl<'de> Deserialize<'de> for UserDeposit
impl<'de> Deserialize<'de> for UserDeposit
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 UserDeposit
impl RefUnwindSafe for UserDeposit
impl Send for UserDeposit
impl Sync for UserDeposit
impl Unpin for UserDeposit
impl UnsafeUnpin for UserDeposit
impl UnwindSafe for UserDeposit
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