pub struct AuditConfig {
pub workspace_path: PathBuf,
pub docs_path: PathBuf,
pub excluded_files: Vec<String>,
pub excluded_crates: Vec<String>,
pub severity_threshold: IssueSeverity,
pub fail_on_critical: bool,
pub example_timeout: Duration,
pub output_format: OutputFormat,
pub database_path: Option<PathBuf>,
pub verbose: bool,
pub quiet: bool,
}Available on crate feature
doc-audit only.Expand description
Configuration for the documentation audit system.
Fields§
§workspace_path: PathBufPath to the workspace root containing Cargo.toml
docs_path: PathBufPath to the documentation directory
excluded_files: Vec<String>Files to exclude from audit (glob patterns)
excluded_crates: Vec<String>Crates to exclude from analysis
severity_threshold: IssueSeverityMinimum severity level to report
fail_on_critical: boolWhether to fail CI/CD on critical issues
example_timeout: DurationTimeout for compiling code examples
output_format: OutputFormatOutput format for reports
database_path: Option<PathBuf>Path to audit database (for incremental audits)
verbose: boolEnable verbose logging
quiet: boolEnable quiet mode (minimal output)
Implementations§
Source§impl AuditConfig
impl AuditConfig
Sourcepub fn builder() -> AuditConfigBuilder
pub fn builder() -> AuditConfigBuilder
Create a new builder.
Sourcepub fn from_file<P>(path: P) -> Result<AuditConfig, AuditError>
pub fn from_file<P>(path: P) -> Result<AuditConfig, AuditError>
Load configuration from a TOML file.
Sourcepub fn save_to_file<P>(&self, path: P) -> Result<(), AuditError>
pub fn save_to_file<P>(&self, path: P) -> Result<(), AuditError>
Save configuration to a TOML file.
Sourcepub fn get_database_path(&self) -> PathBuf
pub fn get_database_path(&self) -> PathBuf
Get the default database path if none is configured.
Trait Implementations§
Source§impl Clone for AuditConfig
impl Clone for AuditConfig
Source§fn clone(&self) -> AuditConfig
fn clone(&self) -> AuditConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditConfig
impl Debug for AuditConfig
Source§impl Default for AuditConfig
impl Default for AuditConfig
Source§fn default() -> AuditConfig
fn default() -> AuditConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditConfig
impl<'de> Deserialize<'de> for AuditConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuditConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuditConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AuditConfig
impl Serialize for AuditConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AuditConfig
impl RefUnwindSafe for AuditConfig
impl Send for AuditConfig
impl Sync for AuditConfig
impl Unpin for AuditConfig
impl UnwindSafe for AuditConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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