Remove serde aliases from types that don't implement Deserialize
This commit is contained in:
parent
3935413b70
commit
5664276133
|
@ -14,10 +14,10 @@ impl Transaction<NoExtension> for ContactCheck {}
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct ContactList {
|
pub struct ContactList {
|
||||||
/// The XML namespace for the contact <check>
|
/// The XML namespace for the contact <check>
|
||||||
#[serde(rename = "xmlns:contact", alias = "xmlns")]
|
#[serde(rename = "xmlns:contact")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The list of contact ids to check for availability
|
/// The list of contact ids to check for availability
|
||||||
#[serde(rename = "contact:id", alias = "id")]
|
#[serde(rename = "contact:id")]
|
||||||
pub contact_ids: Vec<StringValue>,
|
pub contact_ids: Vec<StringValue>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ pub struct ContactList {
|
||||||
/// The <command> type for contact check command
|
/// The <command> type for contact check command
|
||||||
pub struct ContactCheck {
|
pub struct ContactCheck {
|
||||||
/// The <check> tag for the contact check command
|
/// The <check> tag for the contact check command
|
||||||
#[serde(rename = "contact:check", alias = "check")]
|
#[serde(rename = "contact:check")]
|
||||||
list: ContactList,
|
list: ContactList,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,25 +18,25 @@ impl Command for ContactCreate {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct Contact {
|
pub struct Contact {
|
||||||
/// XML namespace for contact commands
|
/// XML namespace for contact commands
|
||||||
#[serde(rename = "xmlns:contact", alias = "xmlns")]
|
#[serde(rename = "xmlns:contact")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// Contact <id> tag
|
/// Contact <id> tag
|
||||||
#[serde(rename = "contact:id", alias = "id")]
|
#[serde(rename = "contact:id")]
|
||||||
id: StringValue,
|
id: StringValue,
|
||||||
/// Contact <postalInfo> tag
|
/// Contact <postalInfo> tag
|
||||||
#[serde(rename = "contact:postalInfo", alias = "postalInfo")]
|
#[serde(rename = "contact:postalInfo")]
|
||||||
postal_info: PostalInfo,
|
postal_info: PostalInfo,
|
||||||
/// Contact <voice> tag
|
/// Contact <voice> tag
|
||||||
#[serde(rename = "contact:voice", alias = "voice")]
|
#[serde(rename = "contact:voice")]
|
||||||
voice: Phone,
|
voice: Phone,
|
||||||
/// Contact <fax> tag,
|
/// Contact <fax> tag,
|
||||||
#[serde(rename = "contact:fax", alias = "fax")]
|
#[serde(rename = "contact:fax")]
|
||||||
fax: Option<Phone>,
|
fax: Option<Phone>,
|
||||||
/// Contact <email> tag
|
/// Contact <email> tag
|
||||||
#[serde(rename = "contact:email", alias = "email")]
|
#[serde(rename = "contact:email")]
|
||||||
email: StringValue,
|
email: StringValue,
|
||||||
/// Contact <authInfo> tag
|
/// Contact <authInfo> tag
|
||||||
#[serde(rename = "contact:authInfo", alias = "authInfo")]
|
#[serde(rename = "contact:authInfo")]
|
||||||
auth_info: ContactAuthInfo,
|
auth_info: ContactAuthInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ pub struct Contact {
|
||||||
/// Type for EPP XML <create> command for contacts
|
/// Type for EPP XML <create> command for contacts
|
||||||
pub struct ContactCreate {
|
pub struct ContactCreate {
|
||||||
/// Data for <create> command for contact
|
/// Data for <create> command for contact
|
||||||
#[serde(rename = "contact:create", alias = "create")]
|
#[serde(rename = "contact:create")]
|
||||||
pub contact: Contact,
|
pub contact: Contact,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,17 +16,17 @@ impl Command for ContactDelete {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct ContactDeleteRequestData {
|
pub struct ContactDeleteRequestData {
|
||||||
/// XML namespace for the <delete> command for contacts
|
/// XML namespace for the <delete> command for contacts
|
||||||
#[serde(rename = "xmlns:contact", alias = "xmlns")]
|
#[serde(rename = "xmlns:contact")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The id of the contact to be deleted
|
/// The id of the contact to be deleted
|
||||||
#[serde(rename = "contact:id", alias = "id")]
|
#[serde(rename = "contact:id")]
|
||||||
id: StringValue,
|
id: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
/// The <delete> type for the contact delete EPP command
|
/// The <delete> type for the contact delete EPP command
|
||||||
pub struct ContactDelete {
|
pub struct ContactDelete {
|
||||||
#[serde(rename = "contact:delete", alias = "delete")]
|
#[serde(rename = "contact:delete")]
|
||||||
/// The data for the <delete> tag for a contact delete command
|
/// The data for the <delete> tag for a contact delete command
|
||||||
contact: ContactDeleteRequestData,
|
contact: ContactDeleteRequestData,
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,13 +18,13 @@ impl Command for ContactInfo {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct ContactInfoRequestData {
|
pub struct ContactInfoRequestData {
|
||||||
/// XML namespace for contact commands
|
/// XML namespace for contact commands
|
||||||
#[serde(rename = "xmlns:contact", alias = "contact")]
|
#[serde(rename = "xmlns:contact")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The contact id for the info command
|
/// The contact id for the info command
|
||||||
#[serde(rename = "contact:id", alias = "id")]
|
#[serde(rename = "contact:id")]
|
||||||
id: StringValue,
|
id: StringValue,
|
||||||
/// The <authInfo> data
|
/// The <authInfo> data
|
||||||
#[serde(rename = "contact:authInfo", alias = "authInfo")]
|
#[serde(rename = "contact:authInfo")]
|
||||||
auth_info: ContactAuthInfo,
|
auth_info: ContactAuthInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ pub struct ContactInfoRequestData {
|
||||||
/// Type for EPP XML <info> command for contacts
|
/// Type for EPP XML <info> command for contacts
|
||||||
pub struct ContactInfo {
|
pub struct ContactInfo {
|
||||||
/// Data for <info> command for contact
|
/// Data for <info> command for contact
|
||||||
#[serde(rename = "contact:info", alias = "info")]
|
#[serde(rename = "contact:info")]
|
||||||
info: ContactInfoRequestData,
|
info: ContactInfoRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,37 +63,37 @@ impl ContactUpdate {
|
||||||
/// Type for elements under the <chg> tag for contact update request
|
/// Type for elements under the <chg> tag for contact update request
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct ContactChangeInfo {
|
pub struct ContactChangeInfo {
|
||||||
#[serde(rename = "contact:postalInfo", alias = "postalInfo")]
|
#[serde(rename = "contact:postalInfo")]
|
||||||
postal_info: Option<PostalInfo>,
|
postal_info: Option<PostalInfo>,
|
||||||
#[serde(rename = "contact:voice", alias = "voice")]
|
#[serde(rename = "contact:voice")]
|
||||||
voice: Option<Phone>,
|
voice: Option<Phone>,
|
||||||
#[serde(rename = "contact:fax", alias = "fax")]
|
#[serde(rename = "contact:fax")]
|
||||||
fax: Option<Phone>,
|
fax: Option<Phone>,
|
||||||
#[serde(rename = "contact:email", alias = "email")]
|
#[serde(rename = "contact:email")]
|
||||||
email: Option<StringValue>,
|
email: Option<StringValue>,
|
||||||
#[serde(rename = "contact:authInfo", alias = "authInfo")]
|
#[serde(rename = "contact:authInfo")]
|
||||||
auth_info: Option<ContactAuthInfo>,
|
auth_info: Option<ContactAuthInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Type for list of elements of the <status> tag for contact update request
|
/// Type for list of elements of the <status> tag for contact update request
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct StatusList {
|
pub struct StatusList {
|
||||||
#[serde(rename = "contact:status", alias = "status")]
|
#[serde(rename = "contact:status")]
|
||||||
status: Vec<ObjectStatus>,
|
status: Vec<ObjectStatus>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Type for elements under the contact <update> tag
|
/// Type for elements under the contact <update> tag
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct ContactUpdateRequestData {
|
pub struct ContactUpdateRequestData {
|
||||||
#[serde(rename = "xmlns:contact", alias = "xmlns")]
|
#[serde(rename = "xmlns:contact")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
#[serde(rename = "contact:id", alias = "id")]
|
#[serde(rename = "contact:id")]
|
||||||
id: StringValue,
|
id: StringValue,
|
||||||
#[serde(rename = "contact:add", alias = "add")]
|
#[serde(rename = "contact:add")]
|
||||||
add_statuses: Option<StatusList>,
|
add_statuses: Option<StatusList>,
|
||||||
#[serde(rename = "contact:rem", alias = "rem")]
|
#[serde(rename = "contact:rem")]
|
||||||
remove_statuses: Option<StatusList>,
|
remove_statuses: Option<StatusList>,
|
||||||
#[serde(rename = "contact:chg", alias = "chg")]
|
#[serde(rename = "contact:chg")]
|
||||||
change_info: Option<ContactChangeInfo>,
|
change_info: Option<ContactChangeInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ pub struct ContactUpdateRequestData {
|
||||||
/// Type for EPP XML <update> command for contacts
|
/// Type for EPP XML <update> command for contacts
|
||||||
pub struct ContactUpdate {
|
pub struct ContactUpdate {
|
||||||
/// The data under the <update> tag for the contact update
|
/// The data under the <update> tag for the contact update
|
||||||
#[serde(rename = "contact:update", alias = "update")]
|
#[serde(rename = "contact:update")]
|
||||||
contact: ContactUpdateRequestData,
|
contact: ContactUpdateRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,10 @@ impl DomainCheck {
|
||||||
/// Type for <name> elements under the domain <check> tag
|
/// Type for <name> elements under the domain <check> tag
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainList {
|
pub struct DomainList {
|
||||||
#[serde(rename = "xmlns:domain", alias = "xmlns")]
|
#[serde(rename = "xmlns:domain")]
|
||||||
/// XML namespace for domain commands
|
/// XML namespace for domain commands
|
||||||
pub xmlns: String,
|
pub xmlns: String,
|
||||||
#[serde(rename = "domain:name", alias = "name")]
|
#[serde(rename = "domain:name")]
|
||||||
/// List of domains to be checked for availability
|
/// List of domains to be checked for availability
|
||||||
pub domains: Vec<StringValue>,
|
pub domains: Vec<StringValue>,
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ pub struct DomainList {
|
||||||
/// Type for EPP XML <check> command for domains
|
/// Type for EPP XML <check> command for domains
|
||||||
pub struct DomainCheck {
|
pub struct DomainCheck {
|
||||||
/// The object holding the list of domains to be checked
|
/// The object holding the list of domains to be checked
|
||||||
#[serde(rename = "domain:check", alias = "check")]
|
#[serde(rename = "domain:check")]
|
||||||
list: DomainList,
|
list: DomainList,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,26 +19,26 @@ impl Command for DomainCreate {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainCreateRequestData {
|
pub struct DomainCreateRequestData {
|
||||||
/// XML namespace for domain commands
|
/// XML namespace for domain commands
|
||||||
#[serde(rename = "xmlns:domain", alias = "xmlns")]
|
#[serde(rename = "xmlns:domain")]
|
||||||
pub xmlns: String,
|
pub xmlns: String,
|
||||||
/// The domain name
|
/// The domain name
|
||||||
#[serde(rename = "domain:name", alias = "name")]
|
#[serde(rename = "domain:name")]
|
||||||
pub name: StringValue,
|
pub name: StringValue,
|
||||||
/// The period of registration
|
/// The period of registration
|
||||||
#[serde(rename = "domain:period", alias = "period")]
|
#[serde(rename = "domain:period")]
|
||||||
pub period: Period,
|
pub period: Period,
|
||||||
/// The list of nameserver hosts
|
/// The list of nameserver hosts
|
||||||
/// either of type `HostObjList` or `HostAttrList`
|
/// either of type `HostObjList` or `HostAttrList`
|
||||||
#[serde(rename = "domain:ns", alias = "ns")]
|
#[serde(rename = "domain:ns")]
|
||||||
pub ns: Option<HostList>,
|
pub ns: Option<HostList>,
|
||||||
/// The domain registrant
|
/// The domain registrant
|
||||||
#[serde(rename = "domain:registrant", alias = "registrant")]
|
#[serde(rename = "domain:registrant")]
|
||||||
pub registrant: Option<StringValue>,
|
pub registrant: Option<StringValue>,
|
||||||
/// The list of contacts for the domain
|
/// The list of contacts for the domain
|
||||||
#[serde(rename = "domain:contact", alias = "contact")]
|
#[serde(rename = "domain:contact")]
|
||||||
pub contacts: Option<Vec<DomainContact>>,
|
pub contacts: Option<Vec<DomainContact>>,
|
||||||
/// The auth info for the domain
|
/// The auth info for the domain
|
||||||
#[serde(rename = "domain:authInfo", alias = "authInfo")]
|
#[serde(rename = "domain:authInfo")]
|
||||||
pub auth_info: DomainAuthInfo,
|
pub auth_info: DomainAuthInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ pub struct DomainCreate {
|
||||||
/// The data for the domain to be created with
|
/// The data for the domain to be created with
|
||||||
/// T being the type of nameserver list (`HostObjList` or `HostAttrList`)
|
/// T being the type of nameserver list (`HostObjList` or `HostAttrList`)
|
||||||
/// to be supplied
|
/// to be supplied
|
||||||
#[serde(rename = "domain:create", alias = "create")]
|
#[serde(rename = "domain:create")]
|
||||||
pub domain: DomainCreateRequestData,
|
pub domain: DomainCreateRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,10 +27,10 @@ impl DomainDelete {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainDeleteRequestData {
|
pub struct DomainDeleteRequestData {
|
||||||
/// XML namespace for domain commands
|
/// XML namespace for domain commands
|
||||||
#[serde(rename = "xmlns:domain", alias = "xmlns")]
|
#[serde(rename = "xmlns:domain")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The domain to be deleted
|
/// The domain to be deleted
|
||||||
#[serde(rename = "domain:name", alias = "name")]
|
#[serde(rename = "domain:name")]
|
||||||
name: StringValue,
|
name: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ pub struct DomainDeleteRequestData {
|
||||||
/// Type for EPP XML <delete> command for domains
|
/// Type for EPP XML <delete> command for domains
|
||||||
pub struct DomainDelete {
|
pub struct DomainDelete {
|
||||||
/// The data under the <delete> tag for domain deletion
|
/// The data under the <delete> tag for domain deletion
|
||||||
#[serde(rename = "domain:delete", alias = "delete")]
|
#[serde(rename = "domain:delete")]
|
||||||
domain: DomainDeleteRequestData,
|
domain: DomainDeleteRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,13 +45,13 @@ pub struct Domain {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainInfoRequestData {
|
pub struct DomainInfoRequestData {
|
||||||
/// XML namespace for domain commands
|
/// XML namespace for domain commands
|
||||||
#[serde(rename = "xmlns:domain", alias = "xmlns")]
|
#[serde(rename = "xmlns:domain")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The data for the domain to be queried
|
/// The data for the domain to be queried
|
||||||
#[serde(rename = "domain:name", alias = "name")]
|
#[serde(rename = "domain:name")]
|
||||||
domain: Domain,
|
domain: Domain,
|
||||||
/// The auth info for the domain
|
/// The auth info for the domain
|
||||||
#[serde(rename = "domain:authInfo", alias = "authInfo")]
|
#[serde(rename = "domain:authInfo")]
|
||||||
auth_info: Option<DomainAuthInfo>,
|
auth_info: Option<DomainAuthInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ pub struct DomainInfoRequestData {
|
||||||
/// Type for EPP XML <info> command for domains
|
/// Type for EPP XML <info> command for domains
|
||||||
pub struct DomainInfo {
|
pub struct DomainInfo {
|
||||||
/// The data under the <info> tag for domain info
|
/// The data under the <info> tag for domain info
|
||||||
#[serde(rename = "domain:info", alias = "info")]
|
#[serde(rename = "domain:info")]
|
||||||
info: DomainInfoRequestData,
|
info: DomainInfoRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,16 +33,16 @@ impl DomainRenew {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainRenewRequestData {
|
pub struct DomainRenewRequestData {
|
||||||
/// XML namespace for domain commands
|
/// XML namespace for domain commands
|
||||||
#[serde(rename = "xmlns:domain", alias = "xmlns")]
|
#[serde(rename = "xmlns:domain")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The name of the domain to be renewed
|
/// The name of the domain to be renewed
|
||||||
#[serde(rename = "domain:name", alias = "name")]
|
#[serde(rename = "domain:name")]
|
||||||
name: StringValue,
|
name: StringValue,
|
||||||
/// The current expiry date of the domain in 'Y-m-d' format
|
/// The current expiry date of the domain in 'Y-m-d' format
|
||||||
#[serde(rename = "domain:curExpDate", alias = "curExpDate")]
|
#[serde(rename = "domain:curExpDate")]
|
||||||
current_expiry_date: StringValue,
|
current_expiry_date: StringValue,
|
||||||
/// The period of renewal
|
/// The period of renewal
|
||||||
#[serde(rename = "domain:period", alias = "period")]
|
#[serde(rename = "domain:period")]
|
||||||
period: Period,
|
period: Period,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ pub struct DomainRenewRequestData {
|
||||||
/// Type for EPP XML <renew> command for domains
|
/// Type for EPP XML <renew> command for domains
|
||||||
pub struct DomainRenew {
|
pub struct DomainRenew {
|
||||||
/// The data under the <renew> tag for the domain renewal
|
/// The data under the <renew> tag for the domain renewal
|
||||||
#[serde(rename = "domain:renew", alias = "renew")]
|
#[serde(rename = "domain:renew")]
|
||||||
domain: DomainRenewRequestData,
|
domain: DomainRenewRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,10 +48,10 @@ impl DomainUpdate {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainChangeInfo {
|
pub struct DomainChangeInfo {
|
||||||
/// The new registrant contact for the domain
|
/// The new registrant contact for the domain
|
||||||
#[serde(rename = "domain:registrant", alias = "update")]
|
#[serde(rename = "domain:registrant")]
|
||||||
pub registrant: Option<StringValue>,
|
pub registrant: Option<StringValue>,
|
||||||
/// The new auth info for the domain
|
/// The new auth info for the domain
|
||||||
#[serde(rename = "domain:authInfo", alias = "authInfo")]
|
#[serde(rename = "domain:authInfo")]
|
||||||
pub auth_info: Option<DomainAuthInfo>,
|
pub auth_info: Option<DomainAuthInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,13 +60,13 @@ pub struct DomainChangeInfo {
|
||||||
pub struct DomainAddRemove {
|
pub struct DomainAddRemove {
|
||||||
/// The list of nameservers to add or remove
|
/// The list of nameservers to add or remove
|
||||||
/// Type T can be either a `HostObjList` or `HostAttrList`
|
/// Type T can be either a `HostObjList` or `HostAttrList`
|
||||||
#[serde(rename = "domain:ns", alias = "ns")]
|
#[serde(rename = "domain:ns")]
|
||||||
pub ns: Option<HostList>,
|
pub ns: Option<HostList>,
|
||||||
/// The list of contacts to add to or remove from the domain
|
/// The list of contacts to add to or remove from the domain
|
||||||
#[serde(rename = "domain:contact", alias = "contact")]
|
#[serde(rename = "domain:contact")]
|
||||||
pub contacts: Option<Vec<DomainContact>>,
|
pub contacts: Option<Vec<DomainContact>>,
|
||||||
/// The list of statuses to add to or remove from the domain
|
/// The list of statuses to add to or remove from the domain
|
||||||
#[serde(rename = "domain:status", alias = "status")]
|
#[serde(rename = "domain:status")]
|
||||||
pub statuses: Option<Vec<ObjectStatus>>,
|
pub statuses: Option<Vec<ObjectStatus>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,28 +74,28 @@ pub struct DomainAddRemove {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct DomainUpdateRequestData {
|
pub struct DomainUpdateRequestData {
|
||||||
/// XML namespace for domain commands
|
/// XML namespace for domain commands
|
||||||
#[serde(rename = "xmlns:domain", alias = "xmlns")]
|
#[serde(rename = "xmlns:domain")]
|
||||||
pub xmlns: String,
|
pub xmlns: String,
|
||||||
/// The name of the domain to update
|
/// The name of the domain to update
|
||||||
#[serde(rename = "domain:name", alias = "name")]
|
#[serde(rename = "domain:name")]
|
||||||
pub name: StringValue,
|
pub name: StringValue,
|
||||||
/// `DomainAddRemove` Object containing the list of elements to be added
|
/// `DomainAddRemove` Object containing the list of elements to be added
|
||||||
/// to the domain
|
/// to the domain
|
||||||
#[serde(rename = "domain:add", alias = "add")]
|
#[serde(rename = "domain:add")]
|
||||||
pub add: Option<DomainAddRemove>,
|
pub add: Option<DomainAddRemove>,
|
||||||
/// `DomainAddRemove` Object containing the list of elements to be removed
|
/// `DomainAddRemove` Object containing the list of elements to be removed
|
||||||
/// from the domain
|
/// from the domain
|
||||||
#[serde(rename = "domain:rem", alias = "rem")]
|
#[serde(rename = "domain:rem")]
|
||||||
pub remove: Option<DomainAddRemove>,
|
pub remove: Option<DomainAddRemove>,
|
||||||
/// The data under the <chg> tag for domain update
|
/// The data under the <chg> tag for domain update
|
||||||
#[serde(rename = "domain:chg", alias = "chg")]
|
#[serde(rename = "domain:chg")]
|
||||||
pub change_info: Option<DomainChangeInfo>,
|
pub change_info: Option<DomainChangeInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
/// Type for EPP XML <update> command for domains
|
/// Type for EPP XML <update> command for domains
|
||||||
pub struct DomainUpdate {
|
pub struct DomainUpdate {
|
||||||
#[serde(rename = "domain:update", alias = "update")]
|
#[serde(rename = "domain:update")]
|
||||||
pub domain: DomainUpdateRequestData,
|
pub domain: DomainUpdateRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,10 +80,10 @@ pub struct Update {
|
||||||
/// Type for EPP XML <consolidate> extension
|
/// Type for EPP XML <consolidate> extension
|
||||||
pub struct UpdateData {
|
pub struct UpdateData {
|
||||||
/// XML namespace for the consolidate extension
|
/// XML namespace for the consolidate extension
|
||||||
#[serde(rename = "xmlns:sync", alias = "xmlns")]
|
#[serde(rename = "xmlns:sync")]
|
||||||
pub xmlns: String,
|
pub xmlns: String,
|
||||||
/// The expiry date of the domain
|
/// The expiry date of the domain
|
||||||
#[serde(rename = "sync:expMonthDay", alias = "sync")]
|
#[serde(rename = "sync:expMonthDay")]
|
||||||
pub exp: StringValue,
|
pub exp: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,25 +53,25 @@ impl Extension for Update<RgpRestoreReport> {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct RgpRestoreReportSectionData {
|
pub struct RgpRestoreReportSectionData {
|
||||||
/// The pre-delete registration date
|
/// The pre-delete registration date
|
||||||
#[serde(rename = "rgp:preData", alias = "preData")]
|
#[serde(rename = "rgp:preData")]
|
||||||
pre_data: StringValue,
|
pre_data: StringValue,
|
||||||
/// The post-delete registration date
|
/// The post-delete registration date
|
||||||
#[serde(rename = "rgp:postData", alias = "postData")]
|
#[serde(rename = "rgp:postData")]
|
||||||
post_data: StringValue,
|
post_data: StringValue,
|
||||||
/// The domain deletion date
|
/// The domain deletion date
|
||||||
#[serde(rename = "rgp:delTime", alias = "delTime")]
|
#[serde(rename = "rgp:delTime")]
|
||||||
deleted_at: StringValue,
|
deleted_at: StringValue,
|
||||||
/// The domain restore request date
|
/// The domain restore request date
|
||||||
#[serde(rename = "rgp:resTime", alias = "resTime")]
|
#[serde(rename = "rgp:resTime")]
|
||||||
restored_at: StringValue,
|
restored_at: StringValue,
|
||||||
/// The reason for domain restoration
|
/// The reason for domain restoration
|
||||||
#[serde(rename = "rgp:resReason", alias = "resReason")]
|
#[serde(rename = "rgp:resReason")]
|
||||||
restore_reason: StringValue,
|
restore_reason: StringValue,
|
||||||
/// The registrar's statements on the domain restoration
|
/// The registrar's statements on the domain restoration
|
||||||
#[serde(rename = "rgp:statement", alias = "statement")]
|
#[serde(rename = "rgp:statement")]
|
||||||
statements: Vec<StringValue>,
|
statements: Vec<StringValue>,
|
||||||
/// Other remarks for domain restoration
|
/// Other remarks for domain restoration
|
||||||
#[serde(rename = "rgp:other", alias = "other")]
|
#[serde(rename = "rgp:other")]
|
||||||
other: StringValue,
|
other: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ pub struct RgpRestoreReportSection {
|
||||||
/// The value of the op attribute for the <restore> tag
|
/// The value of the op attribute for the <restore> tag
|
||||||
op: String,
|
op: String,
|
||||||
/// Data for the <report> tag
|
/// Data for the <report> tag
|
||||||
#[serde(rename = "rgp:report", alias = "report")]
|
#[serde(rename = "rgp:report")]
|
||||||
report: RgpRestoreReportSectionData,
|
report: RgpRestoreReportSectionData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,10 +89,10 @@ pub struct RgpRestoreReportSection {
|
||||||
/// Type for EPP XML <check> command for domains
|
/// Type for EPP XML <check> command for domains
|
||||||
pub struct RgpRestoreReport {
|
pub struct RgpRestoreReport {
|
||||||
/// XML namespace for the RGP restore extension
|
/// XML namespace for the RGP restore extension
|
||||||
#[serde(rename = "xmlns:rgp", alias = "xmlns")]
|
#[serde(rename = "xmlns:rgp")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The object holding the list of domains to be checked
|
/// The object holding the list of domains to be checked
|
||||||
#[serde(rename = "rgp:restore", alias = "restore")]
|
#[serde(rename = "rgp:restore")]
|
||||||
restore: RgpRestoreReportSection,
|
restore: RgpRestoreReportSection,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,10 @@ pub struct RgpRestoreRequestData {
|
||||||
/// Type for EPP XML <check> command for domains
|
/// Type for EPP XML <check> command for domains
|
||||||
pub struct RgpRestoreRequest {
|
pub struct RgpRestoreRequest {
|
||||||
/// XML namespace for the RGP restore extension
|
/// XML namespace for the RGP restore extension
|
||||||
#[serde(rename = "xmlns:rgp", alias = "xmlns")]
|
#[serde(rename = "xmlns:rgp")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The object holding the list of domains to be checked
|
/// The object holding the list of domains to be checked
|
||||||
#[serde(rename = "rgp:restore", alias = "restore")]
|
#[serde(rename = "rgp:restore")]
|
||||||
restore: RgpRestoreRequestData,
|
restore: RgpRestoreRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,10 +33,10 @@ impl HostCheck {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostList {
|
pub struct HostList {
|
||||||
/// XML namespace for host commands
|
/// XML namespace for host commands
|
||||||
#[serde(rename = "xmlns:host", alias = "xmlns")]
|
#[serde(rename = "xmlns:host")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// List of hosts to be checked for availability
|
/// List of hosts to be checked for availability
|
||||||
#[serde(rename = "host:name", alias = "name")]
|
#[serde(rename = "host:name")]
|
||||||
pub hosts: Vec<StringValue>,
|
pub hosts: Vec<StringValue>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ pub struct HostList {
|
||||||
/// Type for EPP XML <check> command for hosts
|
/// Type for EPP XML <check> command for hosts
|
||||||
pub struct HostCheck {
|
pub struct HostCheck {
|
||||||
/// The instance holding the list of hosts to be checked
|
/// The instance holding the list of hosts to be checked
|
||||||
#[serde(rename = "host:check", alias = "check")]
|
#[serde(rename = "host:check")]
|
||||||
list: HostList,
|
list: HostList,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,13 +30,13 @@ impl HostCreate {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostCreateRequestData {
|
pub struct HostCreateRequestData {
|
||||||
/// XML namespace for host commands
|
/// XML namespace for host commands
|
||||||
#[serde(rename = "xmlns:host", alias = "xmlns")]
|
#[serde(rename = "xmlns:host")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The name of the host to be created
|
/// The name of the host to be created
|
||||||
#[serde(rename = "host:name", alias = "name")]
|
#[serde(rename = "host:name")]
|
||||||
pub name: StringValue,
|
pub name: StringValue,
|
||||||
/// The list of IP addresses for the host
|
/// The list of IP addresses for the host
|
||||||
#[serde(rename = "host:addr", alias = "addr")]
|
#[serde(rename = "host:addr")]
|
||||||
pub addresses: Option<Vec<HostAddr>>,
|
pub addresses: Option<Vec<HostAddr>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ pub struct HostCreateRequestData {
|
||||||
/// Type for EPP XML <create> command for hosts
|
/// Type for EPP XML <create> command for hosts
|
||||||
pub struct HostCreate {
|
pub struct HostCreate {
|
||||||
/// The instance holding the data for the host to be created
|
/// The instance holding the data for the host to be created
|
||||||
#[serde(rename = "host:create", alias = "create")]
|
#[serde(rename = "host:create")]
|
||||||
host: HostCreateRequestData,
|
host: HostCreateRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,10 +27,10 @@ impl HostDelete {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostDeleteRequestData {
|
pub struct HostDeleteRequestData {
|
||||||
/// XML namespace for host commands
|
/// XML namespace for host commands
|
||||||
#[serde(rename = "xmlns:host", alias = "xmlns")]
|
#[serde(rename = "xmlns:host")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The host to be deleted
|
/// The host to be deleted
|
||||||
#[serde(rename = "host:name", alias = "name")]
|
#[serde(rename = "host:name")]
|
||||||
name: StringValue,
|
name: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ pub struct HostDeleteRequestData {
|
||||||
/// Type for EPP XML <delete> command for hosts
|
/// Type for EPP XML <delete> command for hosts
|
||||||
pub struct HostDelete {
|
pub struct HostDelete {
|
||||||
/// The instance holding the data for the host to be deleted
|
/// The instance holding the data for the host to be deleted
|
||||||
#[serde(rename = "host:delete", alias = "delete")]
|
#[serde(rename = "host:delete")]
|
||||||
host: HostDeleteRequestData,
|
host: HostDeleteRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,10 +29,10 @@ impl HostInfo {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostInfoRequestData {
|
pub struct HostInfoRequestData {
|
||||||
/// XML namespace for host commands
|
/// XML namespace for host commands
|
||||||
#[serde(rename = "xmlns:host", alias = "xmlns")]
|
#[serde(rename = "xmlns:host")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The name of the host to be queried
|
/// The name of the host to be queried
|
||||||
#[serde(rename = "host:name", alias = "name")]
|
#[serde(rename = "host:name")]
|
||||||
name: StringValue,
|
name: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ pub struct HostInfoRequestData {
|
||||||
/// Type for EPP XML <info> command for hosts
|
/// Type for EPP XML <info> command for hosts
|
||||||
pub struct HostInfo {
|
pub struct HostInfo {
|
||||||
/// The instance holding the data for the host query
|
/// The instance holding the data for the host query
|
||||||
#[serde(rename = "host:info", alias = "info")]
|
#[serde(rename = "host:info")]
|
||||||
info: HostInfoRequestData,
|
info: HostInfoRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ impl HostUpdate {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostChangeInfo {
|
pub struct HostChangeInfo {
|
||||||
/// The new name for the host
|
/// The new name for the host
|
||||||
#[serde(rename = "host:name", alias = "name")]
|
#[serde(rename = "host:name")]
|
||||||
pub name: StringValue,
|
pub name: StringValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,10 +53,10 @@ pub struct HostChangeInfo {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostAddRemove {
|
pub struct HostAddRemove {
|
||||||
/// The IP addresses to be added to or removed from the host
|
/// The IP addresses to be added to or removed from the host
|
||||||
#[serde(rename = "host:addr", alias = "addr")]
|
#[serde(rename = "host:addr")]
|
||||||
pub addresses: Option<Vec<HostAddr>>,
|
pub addresses: Option<Vec<HostAddr>>,
|
||||||
/// The statuses to be added to or removed from the host
|
/// The statuses to be added to or removed from the host
|
||||||
#[serde(rename = "host:status", alias = "status")]
|
#[serde(rename = "host:status")]
|
||||||
pub statuses: Option<Vec<ObjectStatus>>,
|
pub statuses: Option<Vec<ObjectStatus>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,19 +64,19 @@ pub struct HostAddRemove {
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct HostUpdateRequestData {
|
pub struct HostUpdateRequestData {
|
||||||
/// XML namespace for host commands
|
/// XML namespace for host commands
|
||||||
#[serde(rename = "xmlns:host", alias = "xmlns")]
|
#[serde(rename = "xmlns:host")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// The name of the host
|
/// The name of the host
|
||||||
#[serde(rename = "host:name", alias = "name")]
|
#[serde(rename = "host:name")]
|
||||||
name: StringValue,
|
name: StringValue,
|
||||||
/// The IP addresses and statuses to be added to the host
|
/// The IP addresses and statuses to be added to the host
|
||||||
#[serde(rename = "host:add", alias = "add")]
|
#[serde(rename = "host:add")]
|
||||||
add: Option<HostAddRemove>,
|
add: Option<HostAddRemove>,
|
||||||
/// The IP addresses and statuses to be removed from the host
|
/// The IP addresses and statuses to be removed from the host
|
||||||
#[serde(rename = "host:rem", alias = "rem")]
|
#[serde(rename = "host:rem")]
|
||||||
remove: Option<HostAddRemove>,
|
remove: Option<HostAddRemove>,
|
||||||
/// The host details that need to be updated
|
/// The host details that need to be updated
|
||||||
#[serde(rename = "host:chg", alias = "chg")]
|
#[serde(rename = "host:chg")]
|
||||||
change_info: Option<HostChangeInfo>,
|
change_info: Option<HostChangeInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ pub struct HostUpdateRequestData {
|
||||||
/// Type for EPP XML <update> command for hosts
|
/// Type for EPP XML <update> command for hosts
|
||||||
pub struct HostUpdate {
|
pub struct HostUpdate {
|
||||||
/// The instance holding the data for the host to be updated
|
/// The instance holding the data for the host to be updated
|
||||||
#[serde(rename = "host:update", alias = "update")]
|
#[serde(rename = "host:update")]
|
||||||
host: HostUpdateRequestData,
|
host: HostUpdateRequestData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue