pub struct Event {
pub seq: u64,
pub at: String,
pub session_id: String,
pub agent: String,
pub project_root: String,
pub kind: Kind,
pub source: Source,
pub tool: Option<String>,
pub target: Option<String>,
pub outcome: Option<Outcome>,
pub text: Option<String>,
pub truncated: bool,
}Expand description
One stored event: one line of a session’s log, and one item of
activity.list (Local Read v1).
Fields§
§seq: u641-based, increasing within the session (gaps after a trim).
at: StringRFC 3339 UTC with milliseconds.
session_id: String§agent: String§project_root: String§kind: Kind§source: Source§tool: Option<String>§target: Option<String>§outcome: Option<Outcome>§text: Option<String>§truncated: boolWhether text or target was cut to its bound.
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 Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move 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