pub struct GetPositionPnlHistoryResponse {
pub data: Option<Vec<PositionPnlPoint>>,
pub interval: Option<String>,
pub position_id: Option<Uuid>,
}Expand description
GetPositionPnlHistoryResponse
JSON schema
{
"type": "object",
"properties": {
"data": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/PositionPnlPoint"
}
},
"interval": {
"description": "Interval used for this query",
"examples": [
"1h"
],
"type": [
"string",
"null"
]
},
"positionId": {
"description": "Position UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§data: Option<Vec<PositionPnlPoint>>§interval: Option<String>Interval used for this query
position_id: Option<Uuid>Position UUID
Trait Implementations§
Source§impl Clone for GetPositionPnlHistoryResponse
impl Clone for GetPositionPnlHistoryResponse
Source§fn clone(&self) -> GetPositionPnlHistoryResponse
fn clone(&self) -> GetPositionPnlHistoryResponse
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 GetPositionPnlHistoryResponse
impl<'de> Deserialize<'de> for GetPositionPnlHistoryResponse
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
Auto Trait Implementations§
impl Freeze for GetPositionPnlHistoryResponse
impl RefUnwindSafe for GetPositionPnlHistoryResponse
impl Send for GetPositionPnlHistoryResponse
impl Sync for GetPositionPnlHistoryResponse
impl Unpin for GetPositionPnlHistoryResponse
impl UnsafeUnpin for GetPositionPnlHistoryResponse
impl UnwindSafe for GetPositionPnlHistoryResponse
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