diff --git a/epp-client/src/extensions/rgp.rs b/epp-client/src/extensions/rgp.rs new file mode 100644 index 0000000..0936675 --- /dev/null +++ b/epp-client/src/extensions/rgp.rs @@ -0,0 +1,17 @@ +use serde::{Deserialize, Serialize}; + +pub mod report; +pub mod request; + +pub const XMLNS: &str = "urn:ietf:params:xml:ns:rgp-1.0"; + +#[derive(Debug, Deserialize, Serialize)] +pub struct Update { + #[serde( + rename = "rgp:update", + alias = "update", + alias = "upData", + alias = "infData" + )] + pub data: T, +} diff --git a/epp-client/src/lib.rs b/epp-client/src/lib.rs index daaa698..f15b147 100644 --- a/epp-client/src/lib.rs +++ b/epp-client/src/lib.rs @@ -135,25 +135,7 @@ pub mod domain { pub mod extensions { pub mod consolidate; pub mod namestore; - pub mod rgp { - use serde::{Deserialize, Serialize}; - - pub mod report; - pub mod request; - - pub const XMLNS: &str = "urn:ietf:params:xml:ns:rgp-1.0"; - - #[derive(Debug, Deserialize, Serialize)] - pub struct Update { - #[serde( - rename = "rgp:update", - alias = "update", - alias = "upData", - alias = "infData" - )] - pub data: T, - } - } + pub mod rgp; } pub mod host {