#[non_exhaustive]pub struct CreateSessionRequest {
pub parent: String,
pub session: Option<Session>,
/* private fields */
}Available on crate features
conversational-search-service or session-service only.Expand description
Request for CreateSession method.
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.parent: StringRequired. Full resource name of parent data store. Format:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}
session: Option<Session>Required. The session to create.
Implementations§
Source§impl CreateSessionRequest
impl CreateSessionRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_session<T>(self, v: T) -> Self
pub fn set_session<T>(self, v: T) -> Self
Sets the value of session.
Trait Implementations§
Source§impl Clone for CreateSessionRequest
impl Clone for CreateSessionRequest
Source§fn clone(&self) -> CreateSessionRequest
fn clone(&self) -> CreateSessionRequest
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 CreateSessionRequest
impl Debug for CreateSessionRequest
Source§impl Default for CreateSessionRequest
impl Default for CreateSessionRequest
Source§fn default() -> CreateSessionRequest
fn default() -> CreateSessionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateSessionRequest
impl Message for CreateSessionRequest
Source§impl PartialEq for CreateSessionRequest
impl PartialEq for CreateSessionRequest
impl StructuralPartialEq for CreateSessionRequest
Auto Trait Implementations§
impl Freeze for CreateSessionRequest
impl RefUnwindSafe for CreateSessionRequest
impl Send for CreateSessionRequest
impl Sync for CreateSessionRequest
impl Unpin for CreateSessionRequest
impl UnwindSafe for CreateSessionRequest
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