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
61
62
63
64
65
66
67
68
69
70
71
72
/*
* 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 Contact {
/// City is where the person is based.
#[serde(rename = "city", skip_serializing_if = "Option::is_none")]
pub city: Option<String>,
/// CompanyID links the contact to one of the org's companies; empty when the contact stands alone, and cleared when its company is deleted. A write naming a company the org does not own is refused with 422.
#[serde(rename = "companyId", skip_serializing_if = "Option::is_none")]
pub company_id: Option<String>,
/// CreatedAt is the unix second the contact was created. Server-owned.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// Email is the person's email address.
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
/// FirstName is the person's given name.
#[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
pub first_name: Option<String>,
/// ID is the server-minted contact id (\"cont_\" + 128 random bits).
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// JobTitle is the person's role at their company.
#[serde(rename = "jobTitle", skip_serializing_if = "Option::is_none")]
pub job_title: Option<String>,
/// LastName is the person's family name.
#[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
pub last_name: Option<String>,
/// Linkedin is the person's LinkedIn URL.
#[serde(rename = "linkedinLink", skip_serializing_if = "Option::is_none")]
pub linkedin_link: Option<String>,
/// Phone is the person's phone number.
#[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
pub phone: Option<String>,
/// UpdatedAt is the unix second of the last write. Server-owned.
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<i32>,
/// XLink is the person's X (Twitter) URL.
#[serde(rename = "xLink", skip_serializing_if = "Option::is_none")]
pub x_link: Option<String>,
}
impl Contact {
pub fn new() -> Contact {
Contact {
city: None,
company_id: None,
created_at: None,
email: None,
first_name: None,
id: None,
job_title: None,
last_name: None,
linkedin_link: None,
phone: None,
updated_at: None,
x_link: None,
}
}
}