pub struct GetProtfolioHistoryForUserResponseDataResult {
pub currency: Option<GetProtfolioHistoryForUserResponseDataResultCurrency>,
pub end_date: String,
pub history: Vec<GetProtfolioHistoryForUserResponseDataResultHistoryItem>,
pub next_cursor: Option<String>,
pub start_date: String,
pub total_pnl: Option<GetProtfolioHistoryForUserResponseDataResultTotalPnl>,
pub total_pnl_pct: Option<GetProtfolioHistoryForUserResponseDataResultTotalPnlPct>,
}Expand description
GetProtfolioHistoryForUserResponseDataResult
JSON schema
{
"type": "object",
"required": [
"end_date",
"history",
"start_date"
],
"properties": {
"currency": {
"type": [
"string",
"null"
],
"maxLength": 16
},
"end_date": {
"type": "string"
},
"history": {
"type": "array",
"items": {
"type": "object",
"required": [
"date"
],
"properties": {
"assets": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "object",
"properties": {
"balance": {
"type": [
"string",
"null"
],
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
},
"date": {
"type": "string"
},
"total_balance": {
"type": [
"string",
"null"
],
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_pnl": {
"type": [
"string",
"null"
],
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_pnl_pct": {
"type": [
"string",
"null"
],
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"start_date": {
"type": "string"
},
"total_pnl": {
"type": [
"string",
"null"
],
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_pnl_pct": {
"type": [
"string",
"null"
],
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}Fields§
§currency: Option<GetProtfolioHistoryForUserResponseDataResultCurrency>§end_date: String§history: Vec<GetProtfolioHistoryForUserResponseDataResultHistoryItem>§next_cursor: Option<String>§start_date: String§total_pnl: Option<GetProtfolioHistoryForUserResponseDataResultTotalPnl>§total_pnl_pct: Option<GetProtfolioHistoryForUserResponseDataResultTotalPnlPct>Trait Implementations§
Source§impl Clone for GetProtfolioHistoryForUserResponseDataResult
impl Clone for GetProtfolioHistoryForUserResponseDataResult
Source§fn clone(&self) -> GetProtfolioHistoryForUserResponseDataResult
fn clone(&self) -> GetProtfolioHistoryForUserResponseDataResult
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 GetProtfolioHistoryForUserResponseDataResult
impl<'de> Deserialize<'de> for GetProtfolioHistoryForUserResponseDataResult
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<&GetProtfolioHistoryForUserResponseDataResult> for GetProtfolioHistoryForUserResponseDataResult
impl From<&GetProtfolioHistoryForUserResponseDataResult> for GetProtfolioHistoryForUserResponseDataResult
Source§fn from(value: &GetProtfolioHistoryForUserResponseDataResult) -> Self
fn from(value: &GetProtfolioHistoryForUserResponseDataResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetProtfolioHistoryForUserResponseDataResult
impl RefUnwindSafe for GetProtfolioHistoryForUserResponseDataResult
impl Send for GetProtfolioHistoryForUserResponseDataResult
impl Sync for GetProtfolioHistoryForUserResponseDataResult
impl Unpin for GetProtfolioHistoryForUserResponseDataResult
impl UnwindSafe for GetProtfolioHistoryForUserResponseDataResult
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