#[non_exhaustive]pub struct UpdateSessionEntityTypeRequest {
pub session_entity_type: Option<SessionEntityType>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Available on crate feature
session-entity-types only.Expand description
The request message for SessionEntityTypes.UpdateSessionEntityType.
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_entity_type: Option<SessionEntityType>Required. The session entity type to update.
update_mask: Option<FieldMask>Optional. The mask to control which fields get updated.
Implementations§
Source§impl UpdateSessionEntityTypeRequest
impl UpdateSessionEntityTypeRequest
pub fn new() -> Self
Sourcepub fn set_session_entity_type<T>(self, v: T) -> Selfwhere
T: Into<SessionEntityType>,
pub fn set_session_entity_type<T>(self, v: T) -> Selfwhere
T: Into<SessionEntityType>,
Sets the value of session_entity_type.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::SessionEntityType;
let x = UpdateSessionEntityTypeRequest::new().set_session_entity_type(SessionEntityType::default()/* use setters */);Sourcepub fn set_or_clear_session_entity_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionEntityType>,
pub fn set_or_clear_session_entity_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionEntityType>,
Sets or clears the value of session_entity_type.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::SessionEntityType;
let x = UpdateSessionEntityTypeRequest::new().set_or_clear_session_entity_type(Some(SessionEntityType::default()/* use setters */));
let x = UpdateSessionEntityTypeRequest::new().set_or_clear_session_entity_type(None::<SessionEntityType>);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 = UpdateSessionEntityTypeRequest::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 = UpdateSessionEntityTypeRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateSessionEntityTypeRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateSessionEntityTypeRequest
impl Clone for UpdateSessionEntityTypeRequest
Source§fn clone(&self) -> UpdateSessionEntityTypeRequest
fn clone(&self) -> UpdateSessionEntityTypeRequest
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 Default for UpdateSessionEntityTypeRequest
impl Default for UpdateSessionEntityTypeRequest
Source§fn default() -> UpdateSessionEntityTypeRequest
fn default() -> UpdateSessionEntityTypeRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateSessionEntityTypeRequest
impl PartialEq for UpdateSessionEntityTypeRequest
Source§fn eq(&self, other: &UpdateSessionEntityTypeRequest) -> bool
fn eq(&self, other: &UpdateSessionEntityTypeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateSessionEntityTypeRequest
Auto Trait Implementations§
impl Freeze for UpdateSessionEntityTypeRequest
impl RefUnwindSafe for UpdateSessionEntityTypeRequest
impl Send for UpdateSessionEntityTypeRequest
impl Sync for UpdateSessionEntityTypeRequest
impl Unpin for UpdateSessionEntityTypeRequest
impl UnwindSafe for UpdateSessionEntityTypeRequest
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