Move rgp into extensions directory

This commit is contained in:
Nicholas Rempel 2021-11-26 14:21:38 -08:00 committed by masalachai
parent 716412bbcf
commit f3e8447c0d
6 changed files with 13 additions and 8 deletions

View File

@ -3,11 +3,12 @@
use epp_client_macros::*; use epp_client_macros::*;
use crate::common::{ElementName, NoExtension, StringValue}; use crate::common::{ElementName, NoExtension, StringValue};
use crate::domain::rgp::EPP_DOMAIN_RGP_EXT_XMLNS;
use crate::request::EppExtension; use crate::request::EppExtension;
use chrono::{DateTime, SecondsFormat, Utc}; use chrono::{DateTime, SecondsFormat, Utc};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use super::EPP_DOMAIN_RGP_EXT_XMLNS;
/// Type that represents the domain rgp restore report extension /// Type that represents the domain rgp restore report extension
/// ///
/// ## Usage /// ## Usage
@ -18,7 +19,7 @@ use serde::{Deserialize, Serialize};
/// use epp_client::config::{EppClientConfig, RegistryConfig}; /// use epp_client::config::{EppClientConfig, RegistryConfig};
/// use epp_client::EppClient; /// use epp_client::EppClient;
/// use epp_client::common::{DomainStatus, DomainContact}; /// use epp_client::common::{DomainStatus, DomainContact};
/// use epp_client::domain::rgp::report::RgpRestoreReport; /// use epp_client::extensions::rgp::report::RgpRestoreReport;
/// use epp_client::domain::update::DomainUpdate; /// use epp_client::domain::update::DomainUpdate;
/// use epp_client::generate_client_tr_id; /// use epp_client::generate_client_tr_id;
/// use epp_client::common::NoExtension; /// use epp_client::common::NoExtension;

View File

@ -3,12 +3,13 @@
use epp_client_macros::*; use epp_client_macros::*;
use crate::common::ElementName; use crate::common::ElementName;
use crate::domain::rgp::EPP_DOMAIN_RGP_EXT_XMLNS;
use crate::request::EppExtension; use crate::request::EppExtension;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use super::EPP_DOMAIN_RGP_EXT_XMLNS;
/// Type that represents the <epp> request for a domain rgp restore request command /// Type that represents the <epp> request for a domain rgp restore request command
/// ///
/// ## Usage /// ## Usage
@ -18,7 +19,7 @@ use serde::{Deserialize, Serialize};
/// ///
/// use epp_client::config::{EppClientConfig, RegistryConfig}; /// use epp_client::config::{EppClientConfig, RegistryConfig};
/// use epp_client::EppClient; /// use epp_client::EppClient;
/// use epp_client::domain::rgp::request::RgpRestoreRequest; /// use epp_client::extensions::rgp::request::RgpRestoreRequest;
/// use epp_client::domain::update::DomainUpdate; /// use epp_client::domain::update::DomainUpdate;
/// use epp_client::generate_client_tr_id; /// use epp_client::generate_client_tr_id;
/// ///

View File

@ -128,13 +128,16 @@ pub mod domain {
pub mod delete; pub mod delete;
pub mod info; pub mod info;
pub mod renew; pub mod renew;
pub mod rgp;
pub mod transfer; pub mod transfer;
pub mod update; pub mod update;
pub const XMLNS: &str = "urn:ietf:params:xml:ns:domain-1.0"; pub const XMLNS: &str = "urn:ietf:params:xml:ns:domain-1.0";
} }
pub mod extensions {
pub mod rgp;
}
pub mod host { pub mod host {
pub mod check; pub mod check;
pub mod create; pub mod create;

View File

@ -14,13 +14,13 @@ mod response {
use crate::domain::delete::DomainDelete; use crate::domain::delete::DomainDelete;
use crate::domain::info::DomainInfo; use crate::domain::info::DomainInfo;
use crate::domain::renew::DomainRenew; use crate::domain::renew::DomainRenew;
use crate::domain::rgp::request::RgpRestoreRequest;
use crate::domain::transfer::DomainTransferApprove; use crate::domain::transfer::DomainTransferApprove;
use crate::domain::transfer::DomainTransferCancel; use crate::domain::transfer::DomainTransferCancel;
use crate::domain::transfer::DomainTransferQuery; use crate::domain::transfer::DomainTransferQuery;
use crate::domain::transfer::DomainTransferReject; use crate::domain::transfer::DomainTransferReject;
use crate::domain::transfer::DomainTransferRequest; use crate::domain::transfer::DomainTransferRequest;
use crate::domain::update::DomainUpdate; use crate::domain::update::DomainUpdate;
use crate::extensions::rgp::request::RgpRestoreRequest;
use crate::hello::ExpiryType; use crate::hello::ExpiryType;
use crate::hello::Greeting; use crate::hello::Greeting;
use crate::hello::Relative; use crate::hello::Relative;

View File

@ -21,8 +21,6 @@ mod request {
use crate::domain::delete::DomainDelete; use crate::domain::delete::DomainDelete;
use crate::domain::info::DomainInfo; use crate::domain::info::DomainInfo;
use crate::domain::renew::DomainRenew; use crate::domain::renew::DomainRenew;
use crate::domain::rgp::report::RgpRestoreReport;
use crate::domain::rgp::request::RgpRestoreRequest;
use crate::domain::transfer::DomainTransferApprove; use crate::domain::transfer::DomainTransferApprove;
use crate::domain::transfer::DomainTransferCancel; use crate::domain::transfer::DomainTransferCancel;
use crate::domain::transfer::DomainTransferQuery; use crate::domain::transfer::DomainTransferQuery;
@ -31,6 +29,8 @@ mod request {
use crate::domain::update::DomainAddRemove; use crate::domain::update::DomainAddRemove;
use crate::domain::update::DomainChangeInfo; use crate::domain::update::DomainChangeInfo;
use crate::domain::update::DomainUpdate; use crate::domain::update::DomainUpdate;
use crate::extensions::rgp::report::RgpRestoreReport;
use crate::extensions::rgp::request::RgpRestoreRequest;
use crate::hello::Hello; use crate::hello::Hello;
use crate::host::check::HostCheck; use crate::host::check::HostCheck;
use crate::host::create::HostCreate; use crate::host::create::HostCreate;