pub struct BaselineDescriptor {
pub source_kind: BaselineSourceKind,
pub commit_sha: Option<String>,
pub dirty: bool,
pub untracked_count: u32,
pub lockfile_hash: Option<String>,
pub rustc_version: String,
pub cargo_version: String,
pub target_triple: String,
pub env_fingerprint: String,
pub submodule_state: Vec<(String, String)>,
}Expand description
Full provenance record for a baseline execution.
Fields§
§source_kind: BaselineSourceKind§commit_sha: Option<String>Git commit SHA, if available.
dirty: boolWhether the working tree was dirty when the baseline was taken.
untracked_count: u32Number of untracked files present.
lockfile_hash: Option<String>blake3 hash of Cargo.lock, if present.
rustc_version: Stringrustc --version output.
cargo_version: Stringcargo --version output.
target_triple: StringTarget triple (e.g. x86_64-unknown-linux-gnu).
env_fingerprint: Stringblake3 hash of sorted, filtered environment variables.
submodule_state: Vec<(String, String)>Submodule state: list of (path, commit_sha) pairs.
Implementations§
Source§impl BaselineDescriptor
impl BaselineDescriptor
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Compute a deterministic fingerprint for comparability checks.
Trait Implementations§
Source§impl Clone for BaselineDescriptor
impl Clone for BaselineDescriptor
Source§fn clone(&self) -> BaselineDescriptor
fn clone(&self) -> BaselineDescriptor
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 BaselineDescriptor
impl Debug for BaselineDescriptor
Source§impl<'de> Deserialize<'de> for BaselineDescriptor
impl<'de> Deserialize<'de> for BaselineDescriptor
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
Auto Trait Implementations§
impl Freeze for BaselineDescriptor
impl RefUnwindSafe for BaselineDescriptor
impl Send for BaselineDescriptor
impl Sync for BaselineDescriptor
impl Unpin for BaselineDescriptor
impl UnsafeUnpin for BaselineDescriptor
impl UnwindSafe for BaselineDescriptor
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