pub struct GetPortfolioTransactionsResponseDataResultTransactionsItemSpend {
pub amount: GetPortfolioTransactionsResponseDataResultTransactionsItemSpendAmount,
pub balance: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendBalance>,
pub fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendFee>,
pub ledger_id: Option<String>,
pub quoted_amount: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendQuotedAmount>,
pub quoted_fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendQuotedFee>,
pub quoted_total: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendQuotedTotal>,
pub time: Option<DateTime<Utc>>,
pub total: GetPortfolioTransactionsResponseDataResultTransactionsItemSpendTotal,
}Expand description
GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
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: GetPortfolioTransactionsResponseDataResultTransactionsItemSpendAmount§balance: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendBalance>§fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendFee>§ledger_id: Option<String>§quoted_amount: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendQuotedAmount>§quoted_fee: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendQuotedFee>§quoted_total: Option<GetPortfolioTransactionsResponseDataResultTransactionsItemSpendQuotedTotal>§time: Option<DateTime<Utc>>§total: GetPortfolioTransactionsResponseDataResultTransactionsItemSpendTotalTrait Implementations§
Source§impl Clone for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl Clone for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
Source§fn clone(
&self,
) -> GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
fn clone( &self, ) -> GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
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 GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl<'de> Deserialize<'de> for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
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<&GetPortfolioTransactionsResponseDataResultTransactionsItemSpend> for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl From<&GetPortfolioTransactionsResponseDataResultTransactionsItemSpend> for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
Source§fn from(
value: &GetPortfolioTransactionsResponseDataResultTransactionsItemSpend,
) -> Self
fn from( value: &GetPortfolioTransactionsResponseDataResultTransactionsItemSpend, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl RefUnwindSafe for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl Send for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl Sync for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl Unpin for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
impl UnwindSafe for GetPortfolioTransactionsResponseDataResultTransactionsItemSpend
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