pub struct EventRecord {
pub name: String,
pub group: String,
pub pcr_index: u32,
pub event_type: u32,
pub digest_records: Vec<DigestRecords>,
pub data: Option<Vec<u8>>,
pub raw_data: Option<Vec<u8>>,
}Expand description
Represents a record of an event with details related to its metadata and associated data.
This structure captures information about an event that has been recorded, such as its name, its associated group, platform configuration register (PCR) index, event type, cryptographic digest records, and optional event data.
§Fields
-
name: A descriptive name for the event. -
group: The group or category to which the event belongs. -
pcr_index: The index of the Platform Configuration Register (PCR) associated with this event. PCRs are used for storing measurements in trusted environments (e.g., TPM). -
event_type: An identifier representing the type of event. This can be used to classify the event or understand what kind of action triggered it. -
digest_records: A collection of cryptographic digest records associated with the event. These represent hashed measurements that are linked to the integrity of the event data. -
data: Optional data payload of the event. This contains additional context or information associated with the event, stored as a vector of bytes. It is optional and may beNoneif no additional data is present. -
raw_data: Optional raw data payload of the event. This may store raw or unprocessed data in the form of a vector of bytes. Likedata, this field is optional and may also beNone.
Fields§
§name: String§group: String§pcr_index: u32§event_type: u32§digest_records: Vec<DigestRecords>§data: Option<Vec<u8>>§raw_data: Option<Vec<u8>>Trait Implementations§
Source§impl Clone for EventRecord
impl Clone for EventRecord
Source§fn clone(&self) -> EventRecord
fn clone(&self) -> EventRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more