pub struct IndexSpecShard {
pub schema_version: String,
pub shard_hash: String,
pub mapping: TraceMapping,
pub diagnostics: Diagnostics,
}Expand description
One spec’s traceability shard: <derived>/codebase-index/by-spec/<id>.json.
A PR confined to spec X’s inputs rewrites only X’s shard (spec 024 FR-002).
Fields§
§schema_version: StringschemaVersion; see crate::version::INDEX_SCHEMA_VERSION.
shard_hash: StringSHA-256 over this spec’s inputs: its spec.md, the source files backing
its resolved symbol/section/module spans, and the global-inputs scalar
(config + extra_hashed_inputs). Self-describing per-shard staleness.
mapping: TraceMappingThis spec’s mapping onto the code.
diagnostics: DiagnosticsResolver diagnostics scoped to this spec (I-003..I-009 block check).
Omitted when empty, so a clean spec’s shard carries no diagnostics block.
Trait Implementations§
Source§impl Clone for IndexSpecShard
impl Clone for IndexSpecShard
Source§fn clone(&self) -> IndexSpecShard
fn clone(&self) -> IndexSpecShard
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 IndexSpecShard
impl Debug for IndexSpecShard
Source§impl<'de> Deserialize<'de> for IndexSpecShard
impl<'de> Deserialize<'de> for IndexSpecShard
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 IndexSpecShard
impl PartialEq for IndexSpecShard
Source§fn eq(&self, other: &IndexSpecShard) -> bool
fn eq(&self, other: &IndexSpecShard) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexSpecShard
impl Serialize for IndexSpecShard
impl StructuralPartialEq for IndexSpecShard
Auto Trait Implementations§
impl Freeze for IndexSpecShard
impl RefUnwindSafe for IndexSpecShard
impl Send for IndexSpecShard
impl Sync for IndexSpecShard
impl Unpin for IndexSpecShard
impl UnsafeUnpin for IndexSpecShard
impl UnwindSafe for IndexSpecShard
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