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
//! Implement Contact Types
//!
use serde::{Deserialize, Serialize};
///
/// Contact Type
///
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ContactType {
/// The company name for the account.
#[serde(default)]
pub company: String,
/// Desc: The street address for the account contact.
#[serde(default)]
pub addr1: String,
/// Desc: The street address for the account contact.
#[serde(default)]
pub addr2: String,
/// Desc: The street address for the account contact.
#[serde(default)]
pub address1: String,
/// Desc: The street address for the account contact.
#[serde(default)]
pub address2: String,
/// Desc: The city for the account contact.
#[serde(default)]
pub city: String,
/// Desc: The state for the account contact.
#[serde(default)]
pub state: String,
/// Desc: The zip code for the account contact.
#[serde(default)]
pub zip: String,
/// Desc: The country for the account contact.
#[serde(default)]
pub country: String,
/// The phone number for the list contact.
#[serde(default)]
pub phone: String,
}
impl Default for ContactType {
fn default() -> Self {
ContactType {
company: "".to_string(),
addr1: "".to_string(),
addr2: "".to_string(),
address1: "".to_string(),
address2: "".to_string(),
city: "".to_string(),
state: "".to_string(),
zip: "".to_string(),
country: "".to_string(),
phone: "".to_string(),
}
}
}