pub struct DocsArgs {
pub topic: Option<String>,
pub pager: bool,
pub json: bool,
}Expand description
Arguments for dsp docs [topic].
Fields§
§topic: Option<String>Topic to display. Omit to list all topics. Topics: dsp-cli, dsp,
concepts, identifiers, connecting, output, workflows, errors, dsp-tools.
Run dsp docs for one-line descriptions.
pager: boolPage the output through $PAGER (default less).
json: boolEmit the topic index as machine-readable JSON. Cannot be combined with a topic name or –pager.
Trait Implementations§
Source§impl Args for DocsArgs
impl Args for DocsArgs
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 DocsArgs
impl FromArgMatches for DocsArgs
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 DocsArgs
impl RefUnwindSafe for DocsArgs
impl Send for DocsArgs
impl Sync for DocsArgs
impl Unpin for DocsArgs
impl UnsafeUnpin for DocsArgs
impl UnwindSafe for DocsArgs
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