added missing serde aliases for de-ser from valid but non-prefixed xml
This commit is contained in:
parent
890dc0f5d6
commit
2ce09077b1
|
@ -78,25 +78,25 @@ pub type EppContactCreate = EppObject<Command<ContactCreate>>;
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct Contact {
|
pub struct Contact {
|
||||||
/// XML namespace for contact commands
|
/// XML namespace for contact commands
|
||||||
#[serde(rename = "xmlns:contact")]
|
#[serde(rename = "xmlns:contact", alias = "xmlns")]
|
||||||
xmlns: String,
|
xmlns: String,
|
||||||
/// Contact <id> tag
|
/// Contact <id> tag
|
||||||
#[serde(rename = "contact:id")]
|
#[serde(rename = "contact:id", alias = "id")]
|
||||||
id: StringValue,
|
id: StringValue,
|
||||||
/// Contact <postalInfo> tag
|
/// Contact <postalInfo> tag
|
||||||
#[serde(rename = "contact:postalInfo")]
|
#[serde(rename = "contact:postalInfo", alias = "postalInfo")]
|
||||||
postal_info: data::PostalInfo,
|
postal_info: data::PostalInfo,
|
||||||
/// Contact <voice> tag
|
/// Contact <voice> tag
|
||||||
#[serde(rename = "contact:voice")]
|
#[serde(rename = "contact:voice", alias = "voice")]
|
||||||
voice: data::Phone,
|
voice: data::Phone,
|
||||||
/// Contact <fax> tag,
|
/// Contact <fax> tag,
|
||||||
#[serde(rename = "contact:fax")]
|
#[serde(rename = "contact:fax", alias = "fax")]
|
||||||
fax: Option<data::Phone>,
|
fax: Option<data::Phone>,
|
||||||
/// Contact <email> tag
|
/// Contact <email> tag
|
||||||
#[serde(rename = "contact:email")]
|
#[serde(rename = "contact:email", alias = "email")]
|
||||||
email: StringValue,
|
email: StringValue,
|
||||||
/// Contact <authInfo> tag
|
/// Contact <authInfo> tag
|
||||||
#[serde(rename = "contact:authInfo")]
|
#[serde(rename = "contact:authInfo", alias = "authInfo")]
|
||||||
auth_info: data::ContactAuthInfo,
|
auth_info: data::ContactAuthInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,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")]
|
#[serde(rename = "contact:create", alias = "create")]
|
||||||
pub contact: Contact,
|
pub contact: Contact,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue