dtz_core/models/
validity.rs

1/*
2 * DTZ Core Api
3 *
4 * a generated client for the DTZ Core API
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: jens@apimeister.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[allow(unused_imports)]
12use crate::models;
13#[allow(unused_imports)]
14use serde::{Deserialize, Serialize};
15
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct Validity {
18    /// if not present, ingress is immediately available
19    #[serde(rename = "validFrom", skip_serializing_if = "Option::is_none")]
20    pub valid_from: Option<String>,
21    /// if not present, ingress is available forwever
22    #[serde(rename = "validTo", skip_serializing_if = "Option::is_none")]
23    pub valid_to: Option<String>,
24}
25
26impl Validity {
27    pub fn new() -> Validity {
28        Validity {
29            valid_from: None,
30            valid_to: None,
31        }
32    }
33}
34