Enum transip_command::TransipCommand
source · pub enum TransipCommand {
Comment(String),
Domain(DomainCommand),
Dns(DnsCommand),
Invoice(InvoiceCommand),
OnError(OnError),
Product(ProductCommand),
Vps(VpsCommand),
Sleep(u64),
}
Variants§
Comment(String)
Example
use transip_command::TransipCommand;
let commandline = "# lkasjkfiekf";
assert_eq!(
commandline.parse::<TransipCommand>().unwrap(),
TransipCommand::Comment(commandline.to_owned()),
);
Domain(DomainCommand)
Dns(DnsCommand)
Invoice(InvoiceCommand)
OnError(OnError)
Product(ProductCommand)
Vps(VpsCommand)
Sleep(u64)
Example
use transip_command::TransipCommand;
let commandline = "sleep 5";
assert_eq!(
commandline.parse::<TransipCommand>().unwrap(),
TransipCommand::Sleep(5),
);
Trait Implementations§
source§impl Debug for TransipCommand
impl Debug for TransipCommand
source§impl Display for TransipCommand
impl Display for TransipCommand
source§impl FromStr for TransipCommand
impl FromStr for TransipCommand
source§impl PartialEq for TransipCommand
impl PartialEq for TransipCommand
source§fn eq(&self, other: &TransipCommand) -> bool
fn eq(&self, other: &TransipCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransipCommand
Auto Trait Implementations§
impl RefUnwindSafe for TransipCommand
impl Send for TransipCommand
impl Sync for TransipCommand
impl Unpin for TransipCommand
impl UnwindSafe for TransipCommand
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