Re-export command types for easier access

This commit is contained in:
Dirkjan Ochtman 2021-12-27 22:00:26 +01:00 committed by masalachai
parent e9c5db9a1c
commit 24356a722a
4 changed files with 36 additions and 2 deletions

View File

@ -7,7 +7,7 @@
//! use std::net::ToSocketAddrs;
//!
//! use epp_client::EppClient;
//! use epp_client::domain::check::DomainCheck;
//! use epp_client::domain::DomainCheck;
//! use epp_client::common::NoExtension;
//!
//! #[tokio::main]

View File

@ -6,10 +6,19 @@ use serde::{Deserialize, Serialize};
use crate::common::StringValue;
pub mod check;
pub use check::ContactCheck;
pub mod create;
pub use create::ContactCreate;
pub mod delete;
pub use delete::ContactDelete;
pub mod info;
pub use info::ContactInfo;
pub mod update;
pub use update::ContactUpdate;
pub const XMLNS: &str = "urn:ietf:params:xml:ns:contact-1.0";

View File

@ -5,12 +5,25 @@ use serde::{Deserialize, Serialize};
use crate::common::{HostAddr, StringValue};
pub mod check;
pub use check::DomainCheck;
pub mod create;
pub use create::DomainCreate;
pub mod delete;
pub use delete::DomainDelete;
pub mod info;
pub use info::DomainInfo;
pub mod renew;
pub use renew::DomainRenew;
pub mod transfer;
pub use transfer::DomainTransfer;
pub mod update;
pub use update::DomainUpdate;
pub const XMLNS: &str = "urn:ietf:params:xml:ns:domain-1.0";

View File

@ -43,7 +43,7 @@
//! use std::net::ToSocketAddrs;
//!
//! use epp_client::EppClient;
//! use epp_client::domain::check::DomainCheck;
//! use epp_client::domain::DomainCheck;
//! use epp_client::common::NoExtension;
//! use epp_client::login::Login;
//! use epp_client::logout::Logout;
@ -108,17 +108,29 @@ pub mod extensions {
pub mod host {
pub mod check;
pub use check::HostCheck;
pub mod create;
pub use create::HostCreate;
pub mod delete;
pub use delete::HostDelete;
pub mod info;
pub use info::HostInfo;
pub mod update;
pub use update::HostUpdate;
pub const XMLNS: &str = "urn:ietf:params:xml:ns:host-1.0";
}
pub mod message {
pub mod ack;
pub use ack::MessageAck;
pub mod poll;
pub use poll::MessagePoll;
}
pub use client::EppClient;