pub struct Event {
pub event: String,
pub session_id: String,
pub session_metadata: HashMap<String, String>,
pub data: Box<RawValue>,
pub timestamp: String,
}Fields§
§event: String§session_id: String§session_metadata: HashMap<String, String>The session’s metadata (labels set on POST /sessions or PATCH /sessions/{id}) when
the event was sent, so you can route on it without a lookup. Empty when the session has
none, and also empty on a server older than this field.
data: Box<RawValue>§timestamp: StringTrait 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
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