/*
 * Pescheck API
 *
 * Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
 *
 * The version of the OpenAPI document: 2.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedV2ScreeningListItemList {
    #[serde(rename = "count")]
    pub count: i32,
    #[serde(rename = "next", deserialize_with = "Option::deserialize")]
    pub next: Option<String>,
    #[serde(rename = "previous", deserialize_with = "Option::deserialize")]
    pub previous: Option<String>,
    #[serde(rename = "results")]
    pub results: Vec<models::V2ScreeningListItem>,
}

impl PaginatedV2ScreeningListItemList {
    pub fn new(count: i32, next: Option<String>, previous: Option<String>, results: Vec<models::V2ScreeningListItem>) -> PaginatedV2ScreeningListItemList {
        PaginatedV2ScreeningListItemList {
            count,
            next,
            previous,
            results,
        }
    }
}

