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
/*
* 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 ProjectsDomain {
/// CreatedAt is when the host was claimed, as Unix seconds — not when it went live.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// Detail is what is holding the claim up, in words a person can act on.
#[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
pub detail: Option<String>,
/// Host is the custom hostname claimed for this site.
#[serde(rename = "host", skip_serializing_if = "Option::is_none")]
pub host: Option<String>,
/// Records are EXACTLY the DNS records to publish to prove ownership and route the host. Present only while pending, because a live host has already proved it; absent is therefore \"nothing left to do\", not \"we cannot say what to do\".
#[serde(rename = "records", skip_serializing_if = "Option::is_none")]
pub records: Option<Vec<models::Record>>,
/// Status is `live` when the edge answers for this host now, `pending` while the claim is waiting on DNS proof of ownership. A pending host is claimed but serves nothing.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// URL is where the host will serve once it is live — present on a pending claim too, so a console can show the destination before it works.
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
/// Verified is the same fact as a boolean, for a caller that only needs the yes or no. It cannot disagree with status.
#[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
pub verified: Option<bool>,
}
impl ProjectsDomain {
pub fn new() -> ProjectsDomain {
ProjectsDomain {
created_at: None,
detail: None,
host: None,
records: None,
status: None,
url: None,
verified: None,
}
}
}