Skip to main content

hanzo_client/models/
projects_domain.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ProjectsDomain {
16    /// CreatedAt is when the host was claimed, as Unix seconds — not when it went live.
17    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<i32>,
19    /// Detail is what is holding the claim up, in words a person can act on.
20    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
21    pub detail: Option<String>,
22    /// Host is the custom hostname claimed for this site.
23    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
24    pub host: Option<String>,
25    /// 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\".
26    #[serde(rename = "records", skip_serializing_if = "Option::is_none")]
27    pub records: Option<Vec<models::Record>>,
28    /// 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.
29    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
30    pub status: Option<String>,
31    /// 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.
32    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
33    pub url: Option<String>,
34    /// Verified is the same fact as a boolean, for a caller that only needs the yes or no. It cannot disagree with status.
35    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
36    pub verified: Option<bool>,
37}
38
39impl ProjectsDomain {
40    pub fn new() -> ProjectsDomain {
41        ProjectsDomain {
42            created_at: None,
43            detail: None,
44            host: None,
45            records: None,
46            status: None,
47            url: None,
48            verified: None,
49        }
50    }
51}
52