Skip to main content

dtz_containers/models/
domain.rs

1/*
2 * DTZ Containers
3 *
4 * a generated client for the DTZ Containers API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Domain {
17    #[serde(rename = "contextId")]
18    pub context_id: dtz_identifier::ContextId,
19    #[serde(rename = "name")]
20    pub name: String,
21    #[serde(rename = "verified")]
22    pub verified: bool,
23    #[serde(rename = "created")]
24    pub created: String,
25}
26
27impl Domain {
28    pub fn new(context_id: dtz_identifier::ContextId, name: String, verified: bool, created: String) -> Domain {
29        Domain {
30            context_id,
31            name,
32            verified,
33            created,
34        }
35    }
36}
37