pub struct AuditCacheKeyBuilder { /* private fields */ }Expand description
Builder for audit base-snapshot cache keys.
Implementations§
Source§impl AuditCacheKeyBuilder
impl AuditCacheKeyBuilder
Sourcepub fn new(
cache_version: u8,
cli_version: impl Into<String>,
base_sha: impl Into<String>,
config_file: AuditConfigFingerprint,
changed_files: Vec<String>,
materialized_context: AuditMaterializedContextFingerprint,
) -> Self
pub fn new( cache_version: u8, cli_version: impl Into<String>, base_sha: impl Into<String>, config_file: AuditConfigFingerprint, changed_files: Vec<String>, materialized_context: AuditMaterializedContextFingerprint, ) -> Self
Start a cache-key payload with the invariant identity fields.
Sourcepub const fn production(
self,
production: bool,
dead_code: Option<bool>,
health: Option<bool>,
dupes: Option<bool>,
) -> Self
pub const fn production( self, production: bool, dead_code: Option<bool>, health: Option<bool>, dupes: Option<bool>, ) -> Self
Set production-mode options.
Sourcepub fn scope(
self,
workspace: Option<Vec<String>>,
changed_workspaces: Option<String>,
group_by: Option<String>,
include_entry_exports: bool,
) -> Self
pub fn scope( self, workspace: Option<Vec<String>>, changed_workspaces: Option<String>, group_by: Option<String>, include_entry_exports: bool, ) -> Self
Set scope and grouping options.
Sourcepub const fn show_cascade(self, show_cascade: bool) -> Self
pub const fn show_cascade(self, show_cascade: bool) -> Self
Set whether the export and member findings of unused files stay in the report.
Sourcepub const fn brief(self, brief: bool) -> Self
pub const fn brief(self, brief: bool) -> Self
Set whether the base pass ran for the review brief (--brief).
Sourcepub fn health(
self,
max_crap: Option<f64>,
coverage: Option<AuditCoverageFingerprint>,
coverage_root: Option<String>,
) -> Self
pub fn health( self, max_crap: Option<f64>, coverage: Option<AuditCoverageFingerprint>, coverage_root: Option<String>, ) -> Self
Set health and coverage options.
Sourcepub fn analyses(
self,
dead_code: bool,
health: bool,
dupes: bool,
architecture: impl Into<String>,
) -> Self
pub fn analyses( self, dead_code: bool, health: bool, dupes: bool, architecture: impl Into<String>, ) -> Self
Set which sub-analyses ran for the base snapshot, and which dead-code findings the architecture selection kept.
Sourcepub const fn styling(self, css: bool, css_deep: bool) -> Self
pub const fn styling(self, css: bool, css_deep: bool) -> Self
Set styling-analysis options that affect base health snapshot keys.
Sourcepub fn type_aware_backend(self, backend: Option<String>) -> Self
pub fn type_aware_backend(self, backend: Option<String>) -> Self
Set the type-aware backend selection.
Sourcepub fn type_aware(self, selection: Option<AuditTypeAwareFingerprint>) -> Self
pub fn type_aware(self, selection: Option<AuditTypeAwareFingerprint>) -> Self
Set the effective type-aware selection.
Sourcepub const fn payload(&self) -> &AuditCacheKeyPayload
pub const fn payload(&self) -> &AuditCacheKeyPayload
Borrow the completed payload.
Trait Implementations§
Source§impl Clone for AuditCacheKeyBuilder
impl Clone for AuditCacheKeyBuilder
Auto Trait Implementations§
impl Forget for AuditCacheKeyBuilder
impl Freeze for AuditCacheKeyBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<AuditContextFileFingerprint>: Freeze,
PhantomData<AuditContextDirectoryFingerprint>: Freeze,
PhantomData<AuditCoverageFileFingerprint>: Freeze,
impl Move for AuditCacheKeyBuilder
impl RefUnwindSafe for AuditCacheKeyBuilder
impl Send for AuditCacheKeyBuilderwhere
RawVecInner: Send,
impl Sync for AuditCacheKeyBuilderwhere
RawVecInner: Sync,
impl Unpin for AuditCacheKeyBuilder
impl UnsafeUnpin for AuditCacheKeyBuilder
impl UnwindSafe for AuditCacheKeyBuilderwhere
RawVecInner: UnwindSafe,
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