pub struct PartialEvent<'a> {
pub wall_ts_us: i64,
pub agent: &'a str,
pub itc: &'a str,
pub parents_raw: &'a str,
pub event_type: EventType,
pub item_id_raw: &'a str,
pub data_raw: &'a str,
pub event_hash_raw: &'a str,
}Expand description
A partially-parsed event that borrows from the input line.
Extracts the fixed header fields (wall_ts_us through item_id) without
parsing the JSON data payload or verifying the event hash. Useful for
filtering and scanning.
Fields§
§wall_ts_us: i64Wall-clock timestamp in microseconds.
agent: &'a strAgent identifier.
itc: &'a strITC clock stamp.
parents_raw: &'a strRaw parents field (comma-separated hashes or empty).
event_type: EventTypeEvent type.
item_id_raw: &'a strItem ID (raw string, not yet validated as ItemId).
data_raw: &'a strRaw data JSON (unparsed).
event_hash_raw: &'a strRaw event hash.
Trait Implementations§
Source§impl<'a> Clone for PartialEvent<'a>
impl<'a> Clone for PartialEvent<'a>
Source§fn clone(&self) -> PartialEvent<'a>
fn clone(&self) -> PartialEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PartialEvent<'a>
impl<'a> Debug for PartialEvent<'a>
Source§impl<'a> PartialEq for PartialEvent<'a>
impl<'a> PartialEq for PartialEvent<'a>
impl<'a> Eq for PartialEvent<'a>
impl<'a> StructuralPartialEq for PartialEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for PartialEvent<'a>
impl<'a> RefUnwindSafe for PartialEvent<'a>
impl<'a> Send for PartialEvent<'a>
impl<'a> Sync for PartialEvent<'a>
impl<'a> Unpin for PartialEvent<'a>
impl<'a> UnsafeUnpin for PartialEvent<'a>
impl<'a> UnwindSafe for PartialEvent<'a>
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,
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§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.