pub struct RustPlanSummary {Show 22 fields
pub operation: RustPlanOperation,
pub mode: RustPlanMode,
pub plan_schema_version: u32,
pub cache_schema_version: u32,
pub compatibility: RustPlanCompatibility,
pub restored_file_count: u64,
pub restored_bytes: u64,
pub saved_file_count: u64,
pub saved_bytes: u64,
pub skipped_count: u64,
pub skipped_reasons: BTreeMap<String, u64>,
pub skipped_samples: Vec<RustPlanSkippedSample>,
pub key_input_mismatches: Vec<String>,
pub miss_classifications: BTreeMap<String, u64>,
pub backend: String,
pub cache_key: String,
pub backend_cache_key: Option<String>,
pub backend_cache_version: Option<String>,
pub archive_path: Option<NormalizedPath>,
pub journal_log_path: Option<NormalizedPath>,
pub target_artifact_effectiveness: RustPlanArtifactEffectiveness,
pub compile_cache_stats: Option<Value>,
}Expand description
Machine-readable operation summary for soldr/setup-soldr.
Fields§
§operation: RustPlanOperation§mode: RustPlanMode§plan_schema_version: u32§cache_schema_version: u32§compatibility: RustPlanCompatibility§restored_file_count: u64§restored_bytes: u64§saved_file_count: u64§saved_bytes: u64§skipped_count: u64§skipped_reasons: BTreeMap<String, u64>§skipped_samples: Vec<RustPlanSkippedSample>§key_input_mismatches: Vec<String>§miss_classifications: BTreeMap<String, u64>§backend: String§cache_key: String§backend_cache_key: Option<String>§backend_cache_version: Option<String>§archive_path: Option<NormalizedPath>§journal_log_path: Option<NormalizedPath>§target_artifact_effectiveness: RustPlanArtifactEffectiveness§compile_cache_stats: Option<Value>Implementations§
Source§impl RustPlanSummary
impl RustPlanSummary
Sourcepub fn validation_success(plan: &RustArtifactPlanV1, cache_dir: &Path) -> Self
pub fn validation_success(plan: &RustArtifactPlanV1, cache_dir: &Path) -> Self
Create a validation-only success summary.
Sourcepub fn compatibility_failure(
operation: RustPlanOperation,
err: &RustPlanError,
) -> Self
pub fn compatibility_failure( operation: RustPlanOperation, err: &RustPlanError, ) -> Self
Create a compatibility failure summary for JSON CLI output.
Sourcepub fn record_skip(&mut self, path: impl Into<String>, reason: &'static str)
pub fn record_skip(&mut self, path: impl Into<String>, reason: &'static str)
Record a skipped artifact or backend miss in an operation summary.
Sourcepub fn set_backend(
&mut self,
backend: impl Into<String>,
backend_cache_key: Option<String>,
backend_cache_version: Option<String>,
)
pub fn set_backend( &mut self, backend: impl Into<String>, backend_cache_key: Option<String>, backend_cache_version: Option<String>, )
Set the backend identity fields in an operation summary.
Sourcepub fn refresh_miss_classifications(&mut self)
pub fn refresh_miss_classifications(&mut self)
Recompute low-reuse classifications from already-recorded diagnostics.
pub fn computed_miss_classifications(&self) -> BTreeMap<String, u64>
Trait Implementations§
Source§impl Clone for RustPlanSummary
impl Clone for RustPlanSummary
Source§fn clone(&self) -> RustPlanSummary
fn clone(&self) -> RustPlanSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RustPlanSummary
impl Debug for RustPlanSummary
Source§impl<'de> Deserialize<'de> for RustPlanSummary
impl<'de> Deserialize<'de> for RustPlanSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RustPlanSummary
impl PartialEq for RustPlanSummary
Source§fn eq(&self, other: &RustPlanSummary) -> bool
fn eq(&self, other: &RustPlanSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RustPlanSummary
impl Serialize for RustPlanSummary
impl StructuralPartialEq for RustPlanSummary
Auto Trait Implementations§
impl Freeze for RustPlanSummary
impl RefUnwindSafe for RustPlanSummary
impl Send for RustPlanSummary
impl Sync for RustPlanSummary
impl Unpin for RustPlanSummary
impl UnsafeUnpin for RustPlanSummary
impl UnwindSafe for RustPlanSummary
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> 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