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 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 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 baselines(
self,
dead_code: Option<String>,
health: Option<String>,
dupes: Option<String>,
) -> Self
pub fn baselines( self, dead_code: Option<String>, health: Option<String>, dupes: Option<String>, ) -> Self
Set baseline paths.
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 Freeze for AuditCacheKeyBuilder
impl RefUnwindSafe for AuditCacheKeyBuilder
impl Send for AuditCacheKeyBuilder
impl Sync for AuditCacheKeyBuilder
impl Unpin for AuditCacheKeyBuilder
impl UnsafeUnpin for AuditCacheKeyBuilder
impl UnwindSafe for AuditCacheKeyBuilder
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