pub struct GetMasterAccountPortfolioDetailsResponseResult {
pub assets: Vec<GetMasterAccountPortfolioDetailsResponseResultAssetsItem>,
pub currency: GetMasterAccountPortfolioDetailsResponseResultCurrency,
pub timestamp: DateTime<Utc>,
}Expand description
GetMasterAccountPortfolioDetailsResponseResult
JSON schema
{
"type": "object",
"required": [
"assets",
"currency",
"timestamp"
],
"properties": {
"assets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"cash_balance",
"cash_value",
"held_orders_spot",
"index_price"
],
"properties": {
"asset": {
"type": "string",
"maxLength": 16
},
"avail_trade": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"avail_trade_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"avg_entry_price": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"cash_balance": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"cash_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"class": {
"type": "string",
"enum": [
"bond",
"commodity",
"currency",
"derivative",
"stock"
]
},
"cost_basis": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"credit_line_available": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"credit_line_used": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"held_orders_spot": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"index_price": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"lots_upnl": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
},
"currency": {
"type": "string",
"maxLength": 16
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
}Fields§
§assets: Vec<GetMasterAccountPortfolioDetailsResponseResultAssetsItem>§currency: GetMasterAccountPortfolioDetailsResponseResultCurrency§timestamp: DateTime<Utc>Trait Implementations§
Source§impl Clone for GetMasterAccountPortfolioDetailsResponseResult
impl Clone for GetMasterAccountPortfolioDetailsResponseResult
Source§fn clone(&self) -> GetMasterAccountPortfolioDetailsResponseResult
fn clone(&self) -> GetMasterAccountPortfolioDetailsResponseResult
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 GetMasterAccountPortfolioDetailsResponseResult
impl<'de> Deserialize<'de> for GetMasterAccountPortfolioDetailsResponseResult
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<&GetMasterAccountPortfolioDetailsResponseResult> for GetMasterAccountPortfolioDetailsResponseResult
impl From<&GetMasterAccountPortfolioDetailsResponseResult> for GetMasterAccountPortfolioDetailsResponseResult
Source§fn from(value: &GetMasterAccountPortfolioDetailsResponseResult) -> Self
fn from(value: &GetMasterAccountPortfolioDetailsResponseResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetMasterAccountPortfolioDetailsResponseResult
impl RefUnwindSafe for GetMasterAccountPortfolioDetailsResponseResult
impl Send for GetMasterAccountPortfolioDetailsResponseResult
impl Sync for GetMasterAccountPortfolioDetailsResponseResult
impl Unpin for GetMasterAccountPortfolioDetailsResponseResult
impl UnsafeUnpin for GetMasterAccountPortfolioDetailsResponseResult
impl UnwindSafe for GetMasterAccountPortfolioDetailsResponseResult
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