Skip to main content

hanzo_client/models/
contacts.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 Contacts {
16    /// who administers it
17    #[serde(rename = "admin", skip_serializing_if = "Option::is_none")]
18    pub admin: Option<Box<models::Registrant>>,
19    /// who is reached about payment
20    #[serde(rename = "billing", skip_serializing_if = "Option::is_none")]
21    pub billing: Option<Box<models::Registrant>>,
22    /// who owns the domain
23    #[serde(rename = "registrant", skip_serializing_if = "Option::is_none")]
24    pub registrant: Option<Box<models::Registrant>>,
25    /// who is reached about technical matters
26    #[serde(rename = "tech", skip_serializing_if = "Option::is_none")]
27    pub tech: Option<Box<models::Registrant>>,
28}
29
30impl Contacts {
31    pub fn new() -> Contacts {
32        Contacts {
33            admin: None,
34            billing: None,
35            registrant: None,
36            tech: None,
37        }
38    }
39}
40