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