Enum transip_command::DnsCommand
source · pub enum DnsCommand {
List(String),
Delete(String, String),
Insert(String, String),
AcmeValidationDelete(String),
AcmeValidationSet(String, String),
}
Variants§
List(String)
Example
use transip_command::{DnsCommand, TransipCommand};
let commandline = "dns list lkdjfie.nl";
assert_eq!(
commandline.parse::<TransipCommand>().unwrap(),
TransipCommand::Dns(
DnsCommand::List(
"lkdjfie.nl".to_owned()
)
),
);
Delete(String, String)
Insert(String, String)
AcmeValidationDelete(String)
Example
use transip_command::{DnsCommand, TransipCommand};
let commandline = "dns acme-validation-delete lkdfjf.nl";
assert_eq!(
commandline.parse::<TransipCommand>().unwrap(),
TransipCommand::Dns(
DnsCommand::AcmeValidationDelete(
"lkdfjf.nl".to_owned()
)
),
);
AcmeValidationSet(String, String)
Example
use transip_command::{DnsCommand, TransipCommand};
let commandline = "dns acme-validation-set lkdfjf.nl oe8rtg";
assert_eq!(
commandline.parse::<TransipCommand>().unwrap(),
TransipCommand::Dns(
DnsCommand::AcmeValidationSet(
"lkdfjf.nl".to_owned(),
"oe8rtg".to_owned(),
)
),
);
Trait Implementations§
source§impl Debug for DnsCommand
impl Debug for DnsCommand
source§impl Display for DnsCommand
impl Display for DnsCommand
source§impl FromStr for DnsCommand
impl FromStr for DnsCommand
source§impl PartialEq for DnsCommand
impl PartialEq for DnsCommand
source§fn eq(&self, other: &DnsCommand) -> bool
fn eq(&self, other: &DnsCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DnsCommand
Auto Trait Implementations§
impl RefUnwindSafe for DnsCommand
impl Send for DnsCommand
impl Sync for DnsCommand
impl Unpin for DnsCommand
impl UnwindSafe for DnsCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more