pub enum ServerCommands {
Show 23 variants
List {
limit: Option<i32>,
offset: Option<i32>,
},
Info {
id: i32,
},
Delete {
id: i32,
},
Reboot {
id: i32,
},
Start {
id: i32,
},
Shutdown {
id: i32,
},
Clone {
id: i32,
},
ResetPassword {
id: i32,
},
ListPresets,
ListOs,
ListSoftware,
ListConfigurators,
Disk {
id: i32,
},
Ip {
id: i32,
},
History {
id: i32,
},
SetNatMode {
id: i32,
nat_mode: String,
},
SetBootMode {
id: i32,
boot_mode: String,
},
Resize {
id: i32,
preset_id: i32,
},
Reinstall {
id: i32,
os_id: i32,
},
Create {
name: String,
preset_id: i32,
os_id: i32,
comment: Option<String>,
ssh_key: Vec<i32>,
project_id: Option<i32>,
availability_zone: Option<String>,
},
Set {
id: i32,
name: Option<String>,
comment: Option<String>,
},
BackupList {
id: i32,
},
BackupCreate {
id: i32,
comment: Option<String>,
},
}Expand description
Server-related subcommands.
Variants§
List
List all cloud servers.
Fields
Info
Show detailed info for a server.
Delete
Delete a server by ID.
Reboot
Reboot a server by ID.
Start
Power a server on.
Shutdown
Gracefully shut a server down.
Clone
Clone a server by ID.
ResetPassword
Reset a server’s root password.
ListPresets
List available server presets.
ListOs
List installable OS images.
ListSoftware
List available pre-installable software.
ListConfigurators
List server configurators (custom builds).
Disk
List the disks attached to a server.
Ip
List the IP addresses of a server.
History
Show the recent action history (logs) of a server.
SetNatMode
Set the NAT mode of a server’s local network.
SetBootMode
Set the OS boot mode of a server (restarts the server).
Resize
Resize a server to a different preset.
Reinstall
Reinstall the OS of a server (wipes data).
Create
Create a new cloud server from a preset and OS image.
Fields
Set
Update a server’s name and/or comment.
BackupList
List disk backups of a server.
BackupCreate
Create a disk backup of a server’s system disk.
Trait Implementations§
Source§impl Debug for ServerCommands
impl Debug for ServerCommands
Source§impl FromArgMatches for ServerCommands
impl FromArgMatches for ServerCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for ServerCommands
impl Subcommand for ServerCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ServerCommands
impl RefUnwindSafe for ServerCommands
impl Send for ServerCommands
impl Sync for ServerCommands
impl Unpin for ServerCommands
impl UnsafeUnpin for ServerCommands
impl UnwindSafe for ServerCommands
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more