pub struct EventIdentity<'a> {
pub agent: &'a str,
pub session_id: Option<&'a str>,
pub source_id: Option<&'a str>,
pub ts: i64,
pub role: &'a str,
pub extra: Option<&'a str>,
}Expand description
The identifying content of an event. Two source records with identical identity produce the same event id.
Fields§
§agent: &'a str§session_id: Option<&'a str>§source_id: Option<&'a str>The source record’s own id (e.g. Claude Code’s uuid), when it has one.
ts: i64§role: &'a str§extra: Option<&'a str>Any extra discriminator an adapter needs to keep sibling records apart.
Trait Implementations§
Source§impl<'a> Clone for EventIdentity<'a>
impl<'a> Clone for EventIdentity<'a>
Source§fn clone(&self) -> EventIdentity<'a>
fn clone(&self) -> EventIdentity<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for EventIdentity<'a>
Source§impl<'a> Debug for EventIdentity<'a>
impl<'a> Debug for EventIdentity<'a>
Source§impl<'a> Default for EventIdentity<'a>
impl<'a> Default for EventIdentity<'a>
Source§fn default() -> EventIdentity<'a>
fn default() -> EventIdentity<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EventIdentity<'a>
impl<'a> RefUnwindSafe for EventIdentity<'a>
impl<'a> Send for EventIdentity<'a>
impl<'a> Sync for EventIdentity<'a>
impl<'a> Unpin for EventIdentity<'a>
impl<'a> UnsafeUnpin for EventIdentity<'a>
impl<'a> UnwindSafe for EventIdentity<'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