1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainView {
/// CreatedAt is the unix second the custom claim was made.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// Detail says why a claim is still pending, in the resolver's own words.
#[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
pub detail: Option<String>,
/// Host is the hostname itself.
#[serde(rename = "host", skip_serializing_if = "Option::is_none")]
pub host: Option<String>,
/// Kind is `default`, `subtree` or `custom` — how the org came to own it.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// Primary marks the app's permanent default host.
#[serde(rename = "primary", skip_serializing_if = "Option::is_none")]
pub primary: Option<bool>,
/// Records are the DNS records to publish while a custom claim is pending.
#[serde(rename = "records", skip_serializing_if = "Option::is_none")]
pub records: Option<Vec<models::Record>>,
/// Status is `live`, `provisioning`, `pending_deploy` or `pending`, derived from the operator CR and never fabricated.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// URL is the host as an HTTPS address.
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
/// Verified is whether ownership is settled — always true for a host the org structurally owns.
#[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
pub verified: Option<bool>,
}
impl DomainView {
pub fn new() -> DomainView {
DomainView {
created_at: None,
detail: None,
host: None,
kind: None,
primary: None,
records: None,
status: None,
url: None,
verified: None,
}
}
}