pub struct PnlDetailsPage {
pub data: Vec<PnlDetailItemDto>,
pub end_cursor: Option<String>,
pub has_next: bool,
pub has_prev: bool,
pub start_cursor: Option<String>,
pub summary: PnlDetailSummaryDto,
pub total: i64,
}Expand description
PnlDetailsPage
JSON schema
{
"type": "object",
"required": [
"data",
"summary"
],
"properties": {
"data": {
"description": "DTO.PAGE.DATA",
"type": "array",
"items": {
"$ref": "#/components/schemas/PnlDetailItemDTO"
}
},
"endCursor": {
"description": "DTO.PAGE.END_CURSOR",
"type": "string"
},
"hasNext": {
"description": "DTO.PAGE.HAS_NEXT",
"default": false,
"type": "boolean"
},
"hasPrev": {
"description": "DTO.PAGE.HAS_PREV",
"default": false,
"type": "boolean"
},
"startCursor": {
"description": "DTO.PAGE.START_CURSOR",
"type": "string"
},
"summary": {
"description": "DTO.WALLET.PNL_DETAIL.SUMMARY",
"allOf": [
{
"$ref": "#/components/schemas/PnlDetailSummaryDTO"
}
]
},
"total": {
"description": "DTO.PAGE.TOTAL",
"default": 0,
"type": "integer",
"format": "int64"
}
}
}Fields§
§data: Vec<PnlDetailItemDto>DTO.PAGE.DATA
end_cursor: Option<String>DTO.PAGE.END_CURSOR
has_next: boolDTO.PAGE.HAS_NEXT
has_prev: boolDTO.PAGE.HAS_PREV
start_cursor: Option<String>DTO.PAGE.START_CURSOR
summary: PnlDetailSummaryDtoDTO.WALLET.PNL_DETAIL.SUMMARY
total: i64DTO.PAGE.TOTAL
Implementations§
Source§impl PnlDetailsPage
impl PnlDetailsPage
pub fn builder() -> PnlDetailsPage
Trait Implementations§
Source§impl Clone for PnlDetailsPage
impl Clone for PnlDetailsPage
Source§fn clone(&self) -> PnlDetailsPage
fn clone(&self) -> PnlDetailsPage
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 Debug for PnlDetailsPage
impl Debug for PnlDetailsPage
Source§impl<'de> Deserialize<'de> for PnlDetailsPage
impl<'de> Deserialize<'de> for PnlDetailsPage
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<&PnlDetailsPage> for PnlDetailsPage
impl From<&PnlDetailsPage> for PnlDetailsPage
Source§fn from(value: &PnlDetailsPage) -> Self
fn from(value: &PnlDetailsPage) -> Self
Converts to this type from the input type.
Source§impl From<PnlDetailsPage> for PnlDetailsPage
impl From<PnlDetailsPage> for PnlDetailsPage
Source§fn from(value: PnlDetailsPage) -> Self
fn from(value: PnlDetailsPage) -> Self
Converts to this type from the input type.
Source§impl Serialize for PnlDetailsPage
impl Serialize for PnlDetailsPage
Source§impl TryFrom<PnlDetailsPage> for PnlDetailsPage
impl TryFrom<PnlDetailsPage> for PnlDetailsPage
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PnlDetailsPage) -> Result<Self, ConversionError>
fn try_from(value: PnlDetailsPage) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PnlDetailsPage
impl RefUnwindSafe for PnlDetailsPage
impl Send for PnlDetailsPage
impl Sync for PnlDetailsPage
impl Unpin for PnlDetailsPage
impl UnwindSafe for PnlDetailsPage
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