use serde::{Deserialize, Serialize};
use super::{batch_job_response::BatchJobResponse, pagination_response::PaginationResponse};
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
#[non_exhaustive]
pub struct BatchJobListResponse {
pub data: Vec<BatchJobResponse>,
pub pagination_meta: PaginationResponse,
#[serde(flatten)]
pub extra: serde_json::Map<String, serde_json::Value>,
}
impl BatchJobListResponse {
#[must_use]
pub fn new(data: Vec<BatchJobResponse>, pagination_meta: PaginationResponse) -> Self {
Self {
data,
pagination_meta,
extra: serde_json::Map::new(),
}
}
}