pub struct ImportArgs {
pub path: String,
pub symlink: bool,
pub name: Option<String>,
pub profile: Option<String>,
}Fields§
§path: StringPath to the file or directory to import.
symlink: boolDeploy as a symlink instead of a copy, and deploy immediately.
name: Option<String>Override the auto-derived package name.
profile: Option<String>Add the package to this profile’s dependencies instead of default.
Trait Implementations§
Source§impl Args for ImportArgs
impl Args for ImportArgs
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 Debug for ImportArgs
impl Debug for ImportArgs
Source§impl Default for ImportArgs
impl Default for ImportArgs
Source§fn default() -> ImportArgs
fn default() -> ImportArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for ImportArgs
impl FromArgMatches for ImportArgs
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 ImportArgs
impl RefUnwindSafe for ImportArgs
impl Send for ImportArgs
impl Sync for ImportArgs
impl Unpin for ImportArgs
impl UnsafeUnpin for ImportArgs
impl UnwindSafe for ImportArgs
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