pub struct AppConfigBuilder { /* private fields */ }Expand description
Builder for constructing AppConfig with fluent API.
Implementations§
Source§impl AppConfigBuilder
impl AppConfigBuilder
Sourcepub fn fuzzy_preset(self, preset: impl Into<String>) -> Self
pub fn fuzzy_preset(self, preset: impl Into<String>) -> Self
Set the fuzzy matching preset.
Sourcepub const fn matching_threshold(self, threshold: f64) -> Self
pub const fn matching_threshold(self, threshold: f64) -> Self
Set the matching threshold.
Sourcepub const fn output_format(self, format: ReportFormat) -> Self
pub const fn output_format(self, format: ReportFormat) -> Self
Set the output format.
Sourcepub fn output_file(self, file: Option<PathBuf>) -> Self
pub fn output_file(self, file: Option<PathBuf>) -> Self
Set the output file.
Sourcepub const fn include_unchanged(self, include: bool) -> Self
pub const fn include_unchanged(self, include: bool) -> Self
Include unchanged components.
Sourcepub const fn fail_on_vuln(self, fail: bool) -> Self
pub const fn fail_on_vuln(self, fail: bool) -> Self
Enable fail-on-vulnerability mode.
Sourcepub const fn fail_on_change(self, fail: bool) -> Self
pub const fn fail_on_change(self, fail: bool) -> Self
Enable fail-on-change mode.
Sourcepub fn graph_diff(self, enabled: bool) -> Self
pub fn graph_diff(self, enabled: bool) -> Self
Enable graph-aware diffing.
Sourcepub fn matching_rules_file(self, file: Option<PathBuf>) -> Self
pub fn matching_rules_file(self, file: Option<PathBuf>) -> Self
Set matching rules file.
Sourcepub fn ecosystem_rules_file(self, file: Option<PathBuf>) -> Self
pub fn ecosystem_rules_file(self, file: Option<PathBuf>) -> Self
Set ecosystem rules file.
Sourcepub fn enrichment(self, config: EnrichmentConfig) -> Self
pub fn enrichment(self, config: EnrichmentConfig) -> Self
Enable enrichment.
Trait Implementations§
Source§impl Debug for AppConfigBuilder
impl Debug for AppConfigBuilder
Source§impl Default for AppConfigBuilder
impl Default for AppConfigBuilder
Source§fn default() -> AppConfigBuilder
fn default() -> AppConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AppConfigBuilder
impl RefUnwindSafe for AppConfigBuilder
impl Send for AppConfigBuilder
impl Sync for AppConfigBuilder
impl Unpin for AppConfigBuilder
impl UnsafeUnpin for AppConfigBuilder
impl UnwindSafe for AppConfigBuilder
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more