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