From 7039fdb7d62e5b32a7864686d7594f54b3de0b20 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 9 Dec 2021 09:57:37 +0100 Subject: [PATCH] Move rgp module back into extensions/rgp.rs --- epp-client/src/extensions/rgp.rs | 17 +++++++++++++++++ epp-client/src/lib.rs | 20 +------------------- 2 files changed, 18 insertions(+), 19 deletions(-) create mode 100644 epp-client/src/extensions/rgp.rs 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 {