pub struct DiffConfigBuilder { /* private fields */ }Expand description
Builder for DiffConfig
Implementations§
Source§impl DiffConfigBuilder
impl DiffConfigBuilder
pub fn new() -> Self
pub fn old_path(self, path: PathBuf) -> Self
pub fn new_path(self, path: PathBuf) -> Self
pub const fn output_format(self, format: ReportFormat) -> Self
pub fn output_file(self, file: Option<PathBuf>) -> Self
pub const fn report_types(self, types: ReportType) -> Self
pub const fn no_color(self, no_color: bool) -> Self
pub fn fuzzy_preset(self, preset: String) -> Self
pub const fn matching_threshold(self, threshold: Option<f64>) -> Self
pub const fn include_unchanged(self, include: bool) -> Self
pub const fn only_changes(self, only: bool) -> Self
pub fn min_severity(self, severity: Option<String>) -> Self
pub const fn fail_on_vuln(self, fail: bool) -> Self
pub const fn fail_on_change(self, fail: bool) -> Self
pub const fn quiet(self, quiet: bool) -> Self
pub const fn explain_matches(self, explain: bool) -> Self
pub const fn recommend_threshold(self, recommend: bool) -> Self
pub fn graph_diff(self, enabled: bool) -> Self
pub fn matching_rules_file(self, file: Option<PathBuf>) -> Self
pub const fn dry_run_rules(self, dry_run: bool) -> Self
pub fn ecosystem_rules_file(self, file: Option<PathBuf>) -> Self
pub const fn disable_ecosystem_rules(self, disabled: bool) -> Self
pub const fn detect_typosquats(self, detect: bool) -> Self
pub fn enrichment(self, config: EnrichmentConfig) -> Self
pub const fn enable_enrichment(self, enabled: bool) -> Self
pub fn build(self) -> Result<DiffConfig>
Trait Implementations§
Source§impl Debug for DiffConfigBuilder
impl Debug for DiffConfigBuilder
Source§impl Default for DiffConfigBuilder
impl Default for DiffConfigBuilder
Source§fn default() -> DiffConfigBuilder
fn default() -> DiffConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiffConfigBuilder
impl RefUnwindSafe for DiffConfigBuilder
impl Send for DiffConfigBuilder
impl Sync for DiffConfigBuilder
impl Unpin for DiffConfigBuilder
impl UnsafeUnpin for DiffConfigBuilder
impl UnwindSafe for DiffConfigBuilder
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