pub enum AuditCommand {
Audit {Show 13 fields
workspace: PathBuf,
docs: PathBuf,
crate_name: Option<String>,
crate_path: Option<PathBuf>,
format: CliOutputFormat,
severity: CliSeverity,
fail_on_critical: bool,
exclude_files: Vec<String>,
exclude_crates: Vec<String>,
output: Option<PathBuf>,
no_fail: bool,
max_issues: usize,
ci_mode: bool,
},
Crate {
crate_name: String,
workspace: PathBuf,
format: CliOutputFormat,
severity: CliSeverity,
fail_on_critical: bool,
output: Option<PathBuf>,
},
Incremental {
workspace: PathBuf,
docs: PathBuf,
changed_files: Vec<PathBuf>,
format: CliOutputFormat,
},
Validate {
file_path: PathBuf,
workspace: PathBuf,
format: CliOutputFormat,
},
Init {
config_path: PathBuf,
workspace: PathBuf,
docs: PathBuf,
},
Stats {
workspace: PathBuf,
limit: usize,
},
}Available on crate feature
doc-audit only.Expand description
Available audit commands.
Variants§
Audit
Run a full documentation audit
Crate
Audit a single crate’s documentation
Incremental
Run incremental audit on changed files
Fields
§
format: CliOutputFormatOutput format
Validate
Validate a single documentation file
Fields
§
format: CliOutputFormatOutput format
Init
Initialize audit configuration
Fields
Stats
Show audit statistics and history
Trait Implementations§
Source§impl FromArgMatches for AuditCommand
impl FromArgMatches for AuditCommand
Source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches,
) -> Result<AuditCommand, Error>
fn from_arg_matches( __clap_arg_matches: &ArgMatches, ) -> Result<AuditCommand, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<AuditCommand, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<AuditCommand, 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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for AuditCommand
impl Subcommand for AuditCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AuditCommand
impl RefUnwindSafe for AuditCommand
impl Send for AuditCommand
impl Sync for AuditCommand
impl Unpin for AuditCommand
impl UnwindSafe for AuditCommand
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request