pub struct SimpleDoctorArgs {
pub json: bool,
pub db_path: PathBuf,
}Expand description
Shared args for doctor verbs whose only options are --json and a
required <db_path> positional. cli.md § Output posture: --json is
the normative machine-readable contract on every verb.
Fields§
§json: boolEmit machine-readable JSON output.
db_path: PathBufPath to the database file to inspect.
Trait Implementations§
Source§impl Args for SimpleDoctorArgs
impl Args for SimpleDoctorArgs
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 SimpleDoctorArgs
impl Debug for SimpleDoctorArgs
Source§impl FromArgMatches for SimpleDoctorArgs
impl FromArgMatches for SimpleDoctorArgs
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 SimpleDoctorArgs
impl RefUnwindSafe for SimpleDoctorArgs
impl Send for SimpleDoctorArgs
impl Sync for SimpleDoctorArgs
impl Unpin for SimpleDoctorArgs
impl UnsafeUnpin for SimpleDoctorArgs
impl UnwindSafe for SimpleDoctorArgs
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