Skip to main content

hanzo_client/models/
domain_view.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 DomainView {
16    /// CreatedAt is the unix second the custom claim was made.
17    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<i32>,
19    /// Detail says why a claim is still pending, in the resolver's own words.
20    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
21    pub detail: Option<String>,
22    /// Host is the hostname itself.
23    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
24    pub host: Option<String>,
25    /// Kind is `default`, `subtree` or `custom` — how the org came to own it.
26    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
27    pub kind: Option<String>,
28    /// Primary marks the app's permanent default host.
29    #[serde(rename = "primary", skip_serializing_if = "Option::is_none")]
30    pub primary: Option<bool>,
31    /// Records are the DNS records to publish while a custom claim is pending.
32    #[serde(rename = "records", skip_serializing_if = "Option::is_none")]
33    pub records: Option<Vec<models::Record>>,
34    /// Status is `live`, `provisioning`, `pending_deploy` or `pending`, derived from the operator CR and never fabricated.
35    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
36    pub status: Option<String>,
37    /// URL is the host as an HTTPS address.
38    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
39    pub url: Option<String>,
40    /// Verified is whether ownership is settled — always true for a host the org structurally owns.
41    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
42    pub verified: Option<bool>,
43}
44
45impl DomainView {
46    pub fn new() -> DomainView {
47        DomainView {
48            created_at: None,
49            detail: None,
50            host: None,
51            kind: None,
52            primary: None,
53            records: None,
54            status: None,
55            url: None,
56            verified: None,
57        }
58    }
59}
60