lethean/models/
time_range_entity.rs

1/*
2 * Lethean VPN
3 *
4 * Distributed Virtual Private Marketplace
5 *
6 * The version of the OpenAPI document: 1.2.1
7 * Contact: contact@lethean.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TimeRangeEntity {
16    /// YYYY-MM-DDT00:00:00Z
17    #[serde(rename = "from")]
18    pub from: String,
19    /// YYYY-MM-DDT00:00:00Z
20    #[serde(rename = "to")]
21    pub to: String,
22}
23
24impl TimeRangeEntity {
25    pub fn new(from: String, to: String) -> TimeRangeEntity {
26        TimeRangeEntity {
27            from,
28            to,
29        }
30    }
31}
32
33