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 AddEventsRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Event>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for AddEventsRequest
impl RefUnwindSafe for AddEventsRequestwhere
Atomic<*mut ()>: RefUnwindSafe,
NonZero<i32>: RefUnwindSafe,
Utc: RefUnwindSafe,
String: RefUnwindSafe,
impl Send for AddEventsRequestwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
Bytes: Send,
NonZero<i32>: Send,
Utc: Send,
NodeRef<Owned, String, i64, LeafOrInternal>: Send,
BoxRaw<(String, i64)>: Send,
NodeRef<Owned, String, ToolConfirmation, LeafOrInternal>: Send,
BoxRaw<(String, ToolConfirmation)>: Send,
NodeRef<Owned, String, Config, LeafOrInternal>: Send,
BoxRaw<(String, Config)>: Send,
impl Sync for AddEventsRequestwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
Bytes: Sync,
NonZero<i32>: Sync,
Utc: Sync,
NodeRef<Owned, String, i64, LeafOrInternal>: Sync,
BoxRaw<(String, i64)>: Sync,
NodeRef<Owned, String, ToolConfirmation, LeafOrInternal>: Sync,
BoxRaw<(String, ToolConfirmation)>: Sync,
NodeRef<Owned, String, Config, LeafOrInternal>: Sync,
BoxRaw<(String, Config)>: Sync,
impl Unpin for AddEventsRequestwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
*const LeafNode<String, i64> is !null: Unpin,
Box<(String, i64)>: Unpin,
*const LeafNode<String, ToolConfirmation> is !null: Unpin,
Box<(String, ToolConfirmation)>: Unpin,
*const LeafNode<String, Config> is !null: Unpin,
Box<(String, Config)>: Unpin,
impl UnsafeUnpin for AddEventsRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Event>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for AddEventsRequestwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, i64>: UnwindSafe,
BTreeMap<String, ToolConfirmation>: UnwindSafe,
BTreeMap<String, Config>: UnwindSafe,
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