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: 1.1.2
7 * Contact: jens@apimeister.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[allow(unused)]
12use crate::models;
13
14
15
16
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
18pub struct Validity {
19    /// if not present, ingress is immediately available
20    #[serde(rename = "validFrom", skip_serializing_if = "Option::is_none")]
21    pub valid_from: Option<String>,
22    /// if not present, ingress is available forwever
23    #[serde(rename = "validTo", skip_serializing_if = "Option::is_none")]
24    pub valid_to: Option<String>,
25}
26
27impl Validity {
28    pub fn new() -> Validity {
29        Validity {
30            valid_from: None,
31            valid_to: None,
32        }
33    }
34}
35
36