#[non_exhaustive]pub struct TranscriptHeader {
pub rite_transcript: u32,
pub vocabulary: u32,
pub producer: String,
pub run_id: String,
pub dry_run: bool,
pub levels: BTreeMap<String, Level>,
}Expand description
First line of every transcript: what the file is, read before any fact.
Chained like every other line, so it cannot be swapped without breaking
the fingerprint. A reader checks rite_transcript
before parsing anything else and refuses a value it does not know.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rite_transcript: u32Format version of the envelope and chain rule (TRANSCRIPT_FORMAT).
vocabulary: u32Version of the fact vocabulary (FACT_VOCABULARY).
producer: StringProgram and version that wrote the transcript, as it reports itself. Informational: a binary cannot vouch for its own identity.
run_id: StringRandom identifier of this run, 32 lowercase hex digits.
dry_run: boolWhether the run was a dry run. A dry-run transcript is a rehearsal record, never evidence of a ceremony.
levels: BTreeMap<String, Level>Every level this transcript uses, by name. Holds the built-in levels at their fixed values, and any level the ceremony declares.
Implementations§
Trait Implementations§
Source§impl Clone for TranscriptHeader
impl Clone for TranscriptHeader
Source§impl Debug for TranscriptHeader
impl Debug for TranscriptHeader
Source§impl<'de> Deserialize<'de> for TranscriptHeader
impl<'de> Deserialize<'de> for TranscriptHeader
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>,
impl Eq for TranscriptHeader
Source§impl PartialEq for TranscriptHeader
impl PartialEq for TranscriptHeader
Source§impl Serialize for TranscriptHeader
impl Serialize for TranscriptHeader
impl StructuralPartialEq for TranscriptHeader
Auto Trait Implementations§
impl Freeze for TranscriptHeader
impl RefUnwindSafe for TranscriptHeader
impl Send for TranscriptHeader
impl Sync for TranscriptHeader
impl Unpin for TranscriptHeader
impl UnsafeUnpin for TranscriptHeader
impl UnwindSafe for TranscriptHeader
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
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
key and return true if they are equal.