pub struct KrakenEmbedGetPortfolioSummaryResponseData {
pub error: Vec<String>,
pub errors: Vec<String>,
pub result: Option<KrakenEmbedGetPortfolioSummaryResponseDataResult>,
}Expand description
KrakenEmbedGetPortfolioSummaryResponseData
JSON schema
{
"type": "object",
"properties": {
"error": {
"type": "array",
"items": {
"type": "string"
}
},
"errors": {
"type": "array",
"items": {
"type": "string"
}
},
"result": {
"type": "object",
"required": [
"available_balance",
"currency",
"open_orders",
"portfolio_value",
"timestamp",
"withheld_value"
],
"properties": {
"available_balance": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"cost_basis": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"currency": {
"type": "string",
"maxLength": 16
},
"current_day_pnl": {
"oneOf": [
{
"$ref": "#/components/schemas/KrakenEmbedCurrentDayPnl"
},
{
"type": "string"
},
{
"type": "string"
}
]
},
"lots_upnl": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"open_orders": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"portfolio_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"withheld_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
}
}Fields§
§error: Vec<String>§errors: Vec<String>§result: Option<KrakenEmbedGetPortfolioSummaryResponseDataResult>Trait Implementations§
Source§impl Clone for KrakenEmbedGetPortfolioSummaryResponseData
impl Clone for KrakenEmbedGetPortfolioSummaryResponseData
Source§fn clone(&self) -> KrakenEmbedGetPortfolioSummaryResponseData
fn clone(&self) -> KrakenEmbedGetPortfolioSummaryResponseData
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 KrakenEmbedGetPortfolioSummaryResponseData
impl<'de> Deserialize<'de> for KrakenEmbedGetPortfolioSummaryResponseData
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<&KrakenEmbedGetPortfolioSummaryResponseData> for KrakenEmbedGetPortfolioSummaryResponseData
impl From<&KrakenEmbedGetPortfolioSummaryResponseData> for KrakenEmbedGetPortfolioSummaryResponseData
Source§fn from(value: &KrakenEmbedGetPortfolioSummaryResponseData) -> Self
fn from(value: &KrakenEmbedGetPortfolioSummaryResponseData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KrakenEmbedGetPortfolioSummaryResponseData
impl RefUnwindSafe for KrakenEmbedGetPortfolioSummaryResponseData
impl Send for KrakenEmbedGetPortfolioSummaryResponseData
impl Sync for KrakenEmbedGetPortfolioSummaryResponseData
impl Unpin for KrakenEmbedGetPortfolioSummaryResponseData
impl UnsafeUnpin for KrakenEmbedGetPortfolioSummaryResponseData
impl UnwindSafe for KrakenEmbedGetPortfolioSummaryResponseData
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