Remove unused Command type

This commit is contained in:
Dirkjan Ochtman 2021-12-02 14:17:25 +01:00 committed by masalachai
parent 34828032ac
commit 8f43800a3d
1 changed files with 0 additions and 16 deletions

View File

@ -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<T> = CommandWithExtension<T, NoExtension>;
#[derive(Deserialize, Debug, PartialEq, ElementName)]
#[element_name(name = "command")]
/// Type corresponding to the &lt;command&gt; tag in an EPP XML request
@ -84,17 +79,6 @@ impl<T: ElementName + Serialize, E: ElementName + Serialize> Serialize
}
}
impl<T: ElementName> Command<T> {
/// Creates a new &lt;command&gt; tag for an EPP document
pub fn new(command: T, client_tr_id: &str) -> Command<T> {
Command {
command,
extension: None,
client_tr_id: client_tr_id.into(),
}
}
}
impl<T: ElementName, E: ElementName> CommandWithExtension<T, E> {
/// Creates a new &lt;command&gt; tag for an EPP document with a containing &lt;extension&gt; tag
pub fn build(command: T, ext: E, client_tr_id: &str) -> CommandWithExtension<T, E> {