dtz-core 2.3.6

a generated client for the DTZ Core API
Documentation
/*
 * DTZ Core Api
 *
 * a generated client for the DTZ Core API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Validity {
    /// if not present, ingress is immediately available
    #[serde(rename = "validFrom", skip_serializing_if = "Option::is_none")]
    pub valid_from: Option<chrono::DateTime<chrono::FixedOffset>>,
    /// if not present, ingress is available forwever
    #[serde(rename = "validTo", skip_serializing_if = "Option::is_none")]
    pub valid_to: Option<chrono::DateTime<chrono::FixedOffset>>,
}

impl Validity {
    pub fn new() -> Validity {
        Validity {
            valid_from: None,
            valid_to: None,
        }
    }
}