use serde::{Serialize, Deserialize};
use super::{NextPage, PortfolioCompact};
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct GetPortfoliosResponse {
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<Vec<PortfolioCompact>>,
///*Conditional*. This property is only present when a limit query parameter is provided in the request. When making a paginated request, the API will return a number of results as specified by the limit parameter. If more results exist, then the response will contain a next_page attribute, which will include an offset, a relative path attribute, and a full uri attribute. If there are no more pages available, next_page will be null and no offset will be provided. Note that an offset token will expire after some time, as data may have changed.
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page: Option<NextPage>,
}
impl std::fmt::Display for GetPortfoliosResponse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}