Remove unused Command type
This commit is contained in:
parent
34828032ac
commit
8f43800a3d
|
@ -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 <command> 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 <command> 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 <command> tag for an EPP document with a containing <extension> tag
|
||||
pub fn build(command: T, ext: E, client_tr_id: &str) -> CommandWithExtension<T, E> {
|
||||
|
|
Loading…
Reference in New Issue