#[non_exhaustive]pub struct UpdateSessionRequest {
pub session: Option<Session>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Available on crate features
conversational-search-service or session-service only.Expand description
Request for UpdateSession 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.session: Option<Session>Required. The Session to update.
update_mask: Option<FieldMask>Indicates which fields in the provided Session to update. The following are NOT supported:
If not set or empty, all supported fields are updated.
Implementations§
Source§impl UpdateSessionRequest
impl UpdateSessionRequest
pub fn new() -> Self
Sourcepub fn set_session<T>(self, v: T) -> Self
pub fn set_session<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_session<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_session<T>(self, v: Option<T>) -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateSessionRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateSessionRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateSessionRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateSessionRequest
impl Clone for UpdateSessionRequest
Source§fn clone(&self) -> UpdateSessionRequest
fn clone(&self) -> UpdateSessionRequest
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 UpdateSessionRequest
impl Debug for UpdateSessionRequest
Source§impl Default for UpdateSessionRequest
impl Default for UpdateSessionRequest
Source§fn default() -> UpdateSessionRequest
fn default() -> UpdateSessionRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateSessionRequest
impl Message for UpdateSessionRequest
Source§impl PartialEq for UpdateSessionRequest
impl PartialEq for UpdateSessionRequest
impl StructuralPartialEq for UpdateSessionRequest
Auto Trait Implementations§
impl Freeze for UpdateSessionRequest
impl RefUnwindSafe for UpdateSessionRequest
impl Send for UpdateSessionRequest
impl Sync for UpdateSessionRequest
impl Unpin for UpdateSessionRequest
impl UnwindSafe for UpdateSessionRequest
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