//! Types for EPP message poll response use crate::epp::object::{EppObject, StringValue}; use crate::epp::response::CommandResponse; use serde::{Deserialize, Serialize}; /// Type that represents the <epp> tag for the EPP XML message poll response pub type EppMessagePollResponse = EppObject>; /// Type that represents the <trnData> tag for message poll response #[derive(Serialize, Deserialize, Debug)] pub struct MessageDomainTransferData { /// XML namespace for message response data #[serde(rename = "xmlns:obj", alias = "xmlns")] xmlns: String, /// The name of the domain under transfer #[serde(rename = "obj:name", alias = "name")] pub name: StringValue, /// The domain transfer status #[serde(rename = "obj:trStatus", alias = "trStatus")] pub transfer_status: StringValue, /// The epp user who requested the transfer #[serde(rename = "obj:reID", alias = "reID")] pub requester_id: StringValue, /// The date of the transfer request #[serde(rename = "obj:reDate", alias = "reDate")] pub requested_at: StringValue, /// The epp user who should acknowledge the transfer request #[serde(rename = "obj:acID", alias = "acID")] pub ack_id: StringValue, /// The date by which the transfer request should be acknowledged #[serde(rename = "obj:acDate", alias = "acDate")] pub ack_by: StringValue, /// The domain expiry date #[serde(rename = "obj:exDate", alias = "exDate")] pub expiring_at: StringValue, } /// Type that represents the <resData> tag for message poll response #[derive(Serialize, Deserialize, Debug)] pub struct MessagePollResult { /// Data under the <trnData> tag #[serde(rename = "obj:trnData", alias = "trnData")] pub message_data: MessageDomainTransferData, }