pub struct AddArgs {
pub source: Utf8PathBuf,
pub target: Utf8PathBuf,
pub kind: Kind,
pub manager: Option<Manager>,
pub channel: Option<Channel>,
pub pin: Option<String>,
pub apply: bool,
pub json: bool,
}Expand description
Arguments for rk depend add.
Fields§
§source: Utf8PathBufThe dependency’s checkout: a local directory, never a URL.
target: Utf8PathBufThe project that takes the dependency.
kind: Kinddev: a tool on PATH in the development environment; prod: a library the code imports.
manager: Option<Manager>The target’s tool manager; required when the target carries several, or none.
channel: Option<Channel>How the source is fetched; the first viable channel for the manager by default.
pin: Option<String>The version to pin: 1.2.3, v1.2.3, or the release URL; the source tree’s declared version by default.
apply: boolWrite the seed file; without it the fragment or command is printed and nothing is written.
json: boolEmit one JSON object on stdout instead of the human report.
Trait Implementations§
Source§impl Args for AddArgs
impl Args for AddArgs
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 FromArgMatches for AddArgs
impl FromArgMatches for AddArgs
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 AddArgs
impl RefUnwindSafe for AddArgs
impl Send for AddArgs
impl Sync for AddArgs
impl Unpin for AddArgs
impl UnsafeUnpin for AddArgs
impl UnwindSafe for AddArgs
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