pub struct AddEventsRequest {
pub app_name: String,
pub user_id: String,
pub session_id: String,
pub events: Vec<Event>,
pub custom_metadata: Map<String, Value>,
}Expand description
The parameter of EventAdder::add_events and
add_events_to_memory.
EXPERIMENTAL: its API and behavior may change or be removed later.
Fields§
§app_name: StringThe application name for memory scope.
user_id: StringThe user ID for memory scope.
session_id: StringThe optional session ID for memory partitioning. In the in-memory service an empty ID
places the events in a shared default bucket per (app, user), distinct from the bucket
of every session, including a session whose ID is "" added with
MemoryService::add_session_to_memory. Implementations for which session
partitioning does not apply may ignore it.
events: Vec<Event>The ordered events to add to memory.
custom_metadata: Map<String, Value>Optional, implementation-defined metadata for memory generation. The in-memory service ignores it.
Trait Implementations§
Source§impl Clone for AddEventsRequest
impl Clone for AddEventsRequest
Source§impl Debug for AddEventsRequest
impl Debug for AddEventsRequest
Source§impl Default for AddEventsRequest
impl Default for AddEventsRequest
Source§impl PartialEq for AddEventsRequest
impl PartialEq for AddEventsRequest
impl StructuralPartialEq for AddEventsRequest
Auto Trait Implementations§
impl Forget for AddEventsRequest
impl Freeze for AddEventsRequest
impl Move for AddEventsRequest
impl RefUnwindSafe for AddEventsRequest
impl Send for AddEventsRequest
impl Sync for AddEventsRequest
impl Unpin for AddEventsRequest
impl UnsafeUnpin for AddEventsRequest
impl UnwindSafe for AddEventsRequest
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