pub struct Event {
pub topic: String,
pub payload: Option<String>,
pub ts: String,
pub wave_id: Option<String>,
pub wave_index: Option<u32>,
pub wave_total: Option<u32>,
}Expand description
A simplified event for reading from JSONL.
Fields§
§topic: String§payload: Option<String>§ts: String§wave_id: Option<String>Wave correlation ID.
wave_index: Option<u32>Index of this event within the wave (0-based).
wave_total: Option<u32>Total number of events in the wave.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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