pub struct GetProtfolioHistoryForUserResponseData {
pub error: Vec<Value>,
pub errors: Vec<Value>,
pub result: Option<GetProtfolioHistoryForUserResponseDataResult>,
}Expand description
GetProtfolioHistoryForUserResponseData
JSON schema
{
"type": "object",
"required": [
"result"
],
"properties": {
"error": {
"type": "array",
"items": {}
},
"errors": {
"type": "array",
"items": {}
},
"result": {
"type": [
"object",
"null"
],
"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§
§error: Vec<Value>§errors: Vec<Value>§result: Option<GetProtfolioHistoryForUserResponseDataResult>Trait Implementations§
Source§impl Clone for GetProtfolioHistoryForUserResponseData
impl Clone for GetProtfolioHistoryForUserResponseData
Source§fn clone(&self) -> GetProtfolioHistoryForUserResponseData
fn clone(&self) -> GetProtfolioHistoryForUserResponseData
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 GetProtfolioHistoryForUserResponseData
impl<'de> Deserialize<'de> for GetProtfolioHistoryForUserResponseData
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<&GetProtfolioHistoryForUserResponseData> for GetProtfolioHistoryForUserResponseData
impl From<&GetProtfolioHistoryForUserResponseData> for GetProtfolioHistoryForUserResponseData
Source§fn from(value: &GetProtfolioHistoryForUserResponseData) -> Self
fn from(value: &GetProtfolioHistoryForUserResponseData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetProtfolioHistoryForUserResponseData
impl RefUnwindSafe for GetProtfolioHistoryForUserResponseData
impl Send for GetProtfolioHistoryForUserResponseData
impl Sync for GetProtfolioHistoryForUserResponseData
impl Unpin for GetProtfolioHistoryForUserResponseData
impl UnwindSafe for GetProtfolioHistoryForUserResponseData
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