Enum transip_command::TransipCommand
source · pub enum TransipCommand {
Comment(String),
Domain(DomainCommand),
Dns(DnsCommand),
Invoice(InvoiceCommand),
Product(ProductCommand),
Vps(VpsCommand),
}
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)
Product(ProductCommand)
Vps(VpsCommand)
Trait Implementations§
source§impl Debug for TransipCommand
impl Debug 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