diff --git a/epp-client/src/request.rs b/epp-client/src/request.rs index abe6d9e..447a64f 100644 --- a/epp-client/src/request.rs +++ b/epp-client/src/request.rs @@ -6,7 +6,6 @@ use std::fmt::Debug; use std::time::SystemTime; use crate::{ - common::NoExtension, common::{ElementName, EppObject, Extension, StringValue}, response::{Response, ResponseStatus}, xml::EppXml, @@ -51,10 +50,6 @@ pub trait EppExtension: ElementName + DeserializeOwned + Serialize + Sized + Deb type Response: ElementName + DeserializeOwned + Serialize + Debug; } -/// Type corresponding to the <command> tag in an EPP XML request -/// without an <extension> tag -pub type Command = CommandWithExtension; - #[derive(Deserialize, Debug, PartialEq, ElementName)] #[element_name(name = "command")] /// Type corresponding to the <command> tag in an EPP XML request @@ -84,17 +79,6 @@ impl Serialize } } -impl Command { - /// Creates a new <command> tag for an EPP document - pub fn new(command: T, client_tr_id: &str) -> Command { - Command { - command, - extension: None, - client_tr_id: client_tr_id.into(), - } - } -} - impl CommandWithExtension { /// Creates a new <command> tag for an EPP document with a containing <extension> tag pub fn build(command: T, ext: E, client_tr_id: &str) -> CommandWithExtension {