pub struct GetPortfolioTransactionsResponseDataResultTransactionsItemReceive {
pub amount: GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveAmount,
pub balance: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveBalance>,
pub fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveFee>,
pub ledger_id: Option<String>,
pub quoted_amount: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveQuotedAmount>,
pub quoted_fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveQuotedFee>,
pub quoted_total: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveQuotedTotal>,
pub time: Option<DateTime<Utc>>,
pub total: GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveTotal,
}Expand description
GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
JSON schema
{
"type": "object",
"required": [
"amount",
"total"
],
"properties": {
"amount": {
"type": "object",
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
},
"balance": {
"type": [
"object",
"null"
],
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
},
"fee": {
"type": [
"object",
"null"
],
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
},
"ledger_id": {
"type": [
"string",
"null"
]
},
"quoted_amount": {
"type": [
"object",
"null"
],
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
},
"quoted_fee": {
"type": [
"object",
"null"
],
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
},
"quoted_total": {
"type": [
"object",
"null"
],
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
},
"time": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"total": {
"type": "object",
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
}
}
}
}
}Fields§
§amount: GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveAmount§balance: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveBalance>§fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveFee>§ledger_id: Option<String>§quoted_amount: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveQuotedAmount>§quoted_fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveQuotedFee>§quoted_total: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveQuotedTotal>§time: Option<DateTime<Utc>>§total: GetPortfolioTransactionsResponseDataResultTransactionsItemReceiveTotalTrait Implementations§
Source§impl Clone for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl Clone for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
Source§fn clone(
&self,
) -> GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
fn clone( &self, ) -> GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
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<'de> Deserialize<'de> for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl<'de> Deserialize<'de> for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
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
Source§impl From<&GetPortfolioTransactionsResponseDataResultTransactionsItemReceive> for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl From<&GetPortfolioTransactionsResponseDataResultTransactionsItemReceive> for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
Source§fn from(
value: &GetPortfolioTransactionsResponseDataResultTransactionsItemReceive,
) -> Self
fn from( value: &GetPortfolioTransactionsResponseDataResultTransactionsItemReceive, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl RefUnwindSafe for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl Send for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl Sync for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl Unpin for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
impl UnwindSafe for GetPortfolioTransactionsResponseDataResultTransactionsItemReceive
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