#[non_exhaustive]pub struct AppendEventRequest {
pub name: String,
pub event: Option<SessionEvent>,
/* private fields */
}Available on crate feature
session-service only.Expand description
Request message for SessionService.AppendEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The resource name of the session to append event to.
Format:
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}
event: Option<SessionEvent>Required. The event to append to the session.
Implementations§
Source§impl AppendEventRequest
impl AppendEventRequest
pub fn new() -> Self
Sourcepub fn set_event<T>(self, v: T) -> Selfwhere
T: Into<SessionEvent>,
pub fn set_event<T>(self, v: T) -> Selfwhere
T: Into<SessionEvent>,
Sourcepub fn set_or_clear_event<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionEvent>,
pub fn set_or_clear_event<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionEvent>,
Trait Implementations§
Source§impl Clone for AppendEventRequest
impl Clone for AppendEventRequest
Source§fn clone(&self) -> AppendEventRequest
fn clone(&self) -> AppendEventRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppendEventRequest
impl Debug for AppendEventRequest
Source§impl Default for AppendEventRequest
impl Default for AppendEventRequest
Source§fn default() -> AppendEventRequest
fn default() -> AppendEventRequest
Returns the “default value” for a type. Read more
Source§impl Message for AppendEventRequest
impl Message for AppendEventRequest
Source§impl PartialEq for AppendEventRequest
impl PartialEq for AppendEventRequest
impl StructuralPartialEq for AppendEventRequest
Auto Trait Implementations§
impl !Freeze for AppendEventRequest
impl RefUnwindSafe for AppendEventRequest
impl Send for AppendEventRequest
impl Sync for AppendEventRequest
impl Unpin for AppendEventRequest
impl UnsafeUnpin for AppendEventRequest
impl UnwindSafe for AppendEventRequest
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