pub struct EventParams<'a> {
pub event_type: EventType,
pub timestamp: u64,
pub service: Option<&'a str>,
pub device_id: Option<&'a [u8; 16]>,
pub session_id: Option<&'a [u8; 16]>,
pub event_name: Option<&'a str>,
pub payload: Option<&'a [u8]>,
}Expand description
Parameters for encoding a single event.
Fields§
§event_type: EventType§timestamp: u64§service: Option<&'a str>§device_id: Option<&'a [u8; 16]>§session_id: Option<&'a [u8; 16]>§event_name: Option<&'a str>§payload: Option<&'a [u8]>Auto Trait Implementations§
impl<'a> Freeze for EventParams<'a>
impl<'a> RefUnwindSafe for EventParams<'a>
impl<'a> Send for EventParams<'a>
impl<'a> Sync for EventParams<'a>
impl<'a> Unpin for EventParams<'a>
impl<'a> UnsafeUnpin for EventParams<'a>
impl<'a> UnwindSafe for EventParams<'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