use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PageOfPositionLiquidationsDto {
#[serde(rename = "hasNext")]
pub has_next: bool,
#[serde(rename = "nextCursor", skip_serializing_if = "Option::is_none")]
pub next_cursor: Option<String>,
#[serde(rename = "data")]
pub data: Vec<models::PositionLiquidationDto>,
}
impl PageOfPositionLiquidationsDto {
pub fn new(
has_next: bool,
data: Vec<models::PositionLiquidationDto>,
) -> PageOfPositionLiquidationsDto {
PageOfPositionLiquidationsDto {
has_next,
next_cursor: None,
data,
}
}
}