pub struct ArtifactIndexHeader {
pub format_version: u32,
pub target: TargetTriple,
pub rustc_version: WireRustcVersion,
pub generated_at: String,
pub row_count: u64,
}Expand description
The index’s self-describing header.
Fields§
§format_version: u32Format version — ARTIFACT_INDEX_FORMAT_VERSION in every file
this crate encodes.
target: TargetTripleThe slice’s compilation target triple.
rustc_version: WireRustcVersionThe slice’s stable rustc version (e.g. "1.91.1").
generated_at: StringRFC 3339 UTC timestamp of the export. Informational only — it makes every export’s bytes unique, so publish-side change detection digests the rows, never the blob.
row_count: u64Number of rows the body carries; decode rejects a mismatch.
Trait Implementations§
Source§impl Clone for ArtifactIndexHeader
impl Clone for ArtifactIndexHeader
Source§impl Debug for ArtifactIndexHeader
impl Debug for ArtifactIndexHeader
Source§impl<'de> Deserialize<'de> for ArtifactIndexHeader
impl<'de> Deserialize<'de> for ArtifactIndexHeader
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
impl Eq for ArtifactIndexHeader
Source§impl PartialEq for ArtifactIndexHeader
impl PartialEq for ArtifactIndexHeader
Source§impl Serialize for ArtifactIndexHeader
impl Serialize for ArtifactIndexHeader
impl StructuralPartialEq for ArtifactIndexHeader
Auto Trait Implementations§
impl Freeze for ArtifactIndexHeader
impl RefUnwindSafe for ArtifactIndexHeader
impl Send for ArtifactIndexHeader
impl Sync for ArtifactIndexHeader
impl Unpin for ArtifactIndexHeader
impl UnsafeUnpin for ArtifactIndexHeader
impl UnwindSafe for ArtifactIndexHeader
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.