/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExtendedJobs {
    #[serde(rename = "jobs")]
    pub jobs: Vec<models::Job>,
    #[serde(rename = "obscured_jobs")]
    pub obscured_jobs: Vec<models::ObscuredJob>,
    /// Obscured jobs omitted for security because of too specific filtering
    #[serde(rename = "omitted_obscured_jobs", skip_serializing_if = "Option::is_none")]
    pub omitted_obscured_jobs: Option<bool>,
}

impl ExtendedJobs {
    pub fn new(jobs: Vec<models::Job>, obscured_jobs: Vec<models::ObscuredJob>) -> ExtendedJobs {
        ExtendedJobs {
            jobs,
            obscured_jobs,
            omitted_obscured_jobs: None,
        }
    }
}

