use crate::gen::manager::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedConferenceResponse {
#[serde(rename = "items")]
pub items: Vec<models::Conference>,
#[serde(rename = "pagination")]
pub pagination: Box<models::Pagination>,
}
impl PaginatedConferenceResponse {
pub fn new(
items: Vec<models::Conference>,
pagination: models::Pagination,
) -> PaginatedConferenceResponse {
PaginatedConferenceResponse {
items,
pagination: Box::new(pagination),
}
}
}