Skip to main content

EventData

Enum EventData 

Source
#[non_exhaustive]
pub enum EventData { CeremonyStart { schema_version: String, dry_run: bool, ceremony: CeremonyInfo, instance: Option<InstanceInfo>, binary: BinaryInfo, image: Option<ImageManifest>, initrd: Option<InitrdMeasurements>, environment: Option<HashMap<String, String>>, participants: Vec<ParticipantRecord>, started_at: DateTime<Utc>, }, Step { step_id: String, action: ActionType, role: Option<String>, started_at: DateTime<Utc>, completed_at: DateTime<Utc>, outcome: EventOutcome, evidence: StepEvidence, }, EvidenceAdd { path: String, hash: String, size: u64, mime: Option<String>, }, ArtifactProduce { source: String, path: String, hash: String, size: u64, mime: Option<String>, }, Deviation { reason: String, step_id: Option<String>, recorded_at: DateTime<Utc>, }, CeremonyComplete { completed_at: DateTime<Utc>, status: TranscriptStatus, }, }
Expand description

Event data types for JSONL transcript entries.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CeremonyStart

Ceremony started.

Fields

§schema_version: String

Transcript format version.

§dry_run: bool

Whether this is a dry run.

§ceremony: CeremonyInfo

Ceremony identity and fingerprint.

§instance: Option<InstanceInfo>

Instance-specific parameters (absent if ceremony has no parameters).

§binary: BinaryInfo

Binary identity and version.

§image: Option<ImageManifest>

Live USB image manifest (absent when not running from a live image).

§initrd: Option<InitrdMeasurements>

Initrd measurements (absent when not running from a live image).

§environment: Option<HashMap<String, String>>

OS environment variables at ceremony start (if captured).

§participants: Vec<ParticipantRecord>

Participants assigned to roles for this execution.

Makes the transcript self-contained: role names and person assignments are recorded here so audit records are standalone.

§started_at: DateTime<Utc>

Timestamp when the ceremony started.

§

Step

Step execution.

Fields

§step_id: String

Step identifier from the ceremony definition.

§action: ActionType

Action type performed.

§role: Option<String>

Role that performed this step (if role-bound).

§started_at: DateTime<Utc>

When the step started.

§completed_at: DateTime<Utc>

When the step completed.

§outcome: EventOutcome

Whether the step completed or was skipped.

§evidence: StepEvidence

Action-specific evidence collected during execution.

§

EvidenceAdd

Evidence file added (photo, document, etc.).

Fields

§path: String

Path to the evidence file.

§hash: String

SHA-256 fingerprint of the file.

§size: u64

File size in bytes.

§mime: Option<String>

MIME type (if known).

§

ArtifactProduce

Artifact produced by ceremony.

Fields

§source: String

Artifact ID (from the ceremony definition).

§path: String

Path where the artifact was written.

§hash: String

SHA-256 fingerprint of the written file.

§size: u64

File size in bytes.

§mime: Option<String>

MIME type (if known).

§

Deviation

Deviation from expected procedure.

Fields

§reason: String

Human-readable reason for the deviation.

§step_id: Option<String>

Step being deviated from (if applicable).

§recorded_at: DateTime<Utc>

When the deviation was recorded.

§

CeremonyComplete

Ceremony completed.

Fields

§completed_at: DateTime<Utc>

When the ceremony finished.

§status: TranscriptStatus

Final completion status.

Trait Implementations§

Source§

impl Clone for EventData

Source§

fn clone(&self) -> EventData

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventData

Source§

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 Serialize for EventData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,