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
73
74
75
76
77
78
79
80
81
82
83
84
use serde::{Deserialize, Serialize};
use crate::epp::object::data::{AuthInfo, DomainContact, DomainStatus, HostAttr};
use crate::epp::object::{EppObject, StringValue};
use crate::epp::response::domain::rgp::request::RgpRequestResult;
use crate::epp::response::CommandResponseWithExtension;
pub type EppDomainInfoResponse =
EppObject<CommandResponseWithExtension<DomainInfoResult, RgpRequestResult>>;
#[derive(Serialize, Deserialize, Debug)]
pub struct DomainNsList {
#[serde(rename = "hostObj")]
pub host_obj: Option<Vec<StringValue>>,
pub host_attr: Option<Vec<HostAttr>>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct DomainInfoData {
#[serde(rename = "xmlns:domain")]
xmlns: String,
#[serde(rename = "xsi:schemaLocation")]
schema_location: String,
pub name: StringValue,
pub roid: StringValue,
#[serde(rename = "status")]
pub statuses: Vec<DomainStatus>,
pub registrant: StringValue,
#[serde(rename = "contact")]
pub contacts: Vec<DomainContact>,
#[serde(rename = "ns")]
pub ns: Option<DomainNsList>,
#[serde(rename = "host")]
pub hosts: Option<Vec<StringValue>>,
#[serde(rename = "clID")]
pub client_id: StringValue,
#[serde(rename = "crID")]
pub creator_id: StringValue,
#[serde(rename = "crDate")]
pub created_at: StringValue,
#[serde(rename = "upID")]
pub updater_id: StringValue,
#[serde(rename = "upDate")]
pub updated_at: StringValue,
#[serde(rename = "exDate")]
pub expiring_at: StringValue,
#[serde(rename = "trDate")]
pub transferred_at: Option<StringValue>,
#[serde(rename = "authInfo")]
pub auth_info: Option<AuthInfo>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct DomainInfoResult {
#[serde(rename = "infData")]
pub info_data: DomainInfoData,
}