pub struct CreateArgs {
pub name: String,
pub release: Option<String>,
pub arch: Option<GuestArch>,
pub accel: Option<AccelMode>,
pub cpus: Option<u8>,
pub memory_mib: Option<u32>,
pub disk_gib: Option<u32>,
pub ssh_key: Option<String>,
pub forwards: Vec<(u16, u16)>,
pub timeout_secs: Option<u64>,
pub cloud_init_user_data: Option<String>,
pub cloud_init_network_config: Option<String>,
}Fields§
§name: String§release: Option<String>§arch: Option<GuestArch>§accel: Option<AccelMode>§cpus: Option<u8>§memory_mib: Option<u32>§disk_gib: Option<u32>§ssh_key: Option<String>§forwards: Vec<(u16, u16)>§timeout_secs: Option<u64>§cloud_init_user_data: Option<String>§cloud_init_network_config: Option<String>Trait Implementations§
Source§impl Args for CreateArgs
impl Args for CreateArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CreateArgs
impl Clone for CreateArgs
Source§fn clone(&self) -> CreateArgs
fn clone(&self) -> CreateArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateArgs
impl Debug for CreateArgs
Source§impl FromArgMatches for CreateArgs
impl FromArgMatches for CreateArgs
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CreateArgs
impl RefUnwindSafe for CreateArgs
impl Send for CreateArgs
impl Sync for CreateArgs
impl Unpin for CreateArgs
impl UnsafeUnpin for CreateArgs
impl UnwindSafe for CreateArgs
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