#[non_exhaustive]pub struct CreateSessionEntityTypeRequest {
pub parent: String,
pub session_entity_type: Option<SessionEntityType>,
/* private fields */
}Available on crate feature
session-entity-types only.Expand description
The request message for SessionEntityTypes.CreateSessionEntityType.
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. The session to create a session entity type for.
Format: projects/<Project ID>/agent/sessions/<Session ID> or
projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>.
If Environment ID is not specified, we assume default ‘draft’
environment. If User ID is not specified, we assume default ‘-’ user.
session_entity_type: Option<SessionEntityType>Required. The session entity type to create.
Implementations§
Source§impl CreateSessionEntityTypeRequest
impl CreateSessionEntityTypeRequest
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
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 = CreateSessionEntityTypeRequest::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 = CreateSessionEntityTypeRequest::new().set_or_clear_session_entity_type(Some(SessionEntityType::default()/* use setters */));
let x = CreateSessionEntityTypeRequest::new().set_or_clear_session_entity_type(None::<SessionEntityType>);Trait Implementations§
Source§impl Clone for CreateSessionEntityTypeRequest
impl Clone for CreateSessionEntityTypeRequest
Source§fn clone(&self) -> CreateSessionEntityTypeRequest
fn clone(&self) -> CreateSessionEntityTypeRequest
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 CreateSessionEntityTypeRequest
impl Default for CreateSessionEntityTypeRequest
Source§fn default() -> CreateSessionEntityTypeRequest
fn default() -> CreateSessionEntityTypeRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateSessionEntityTypeRequest
impl PartialEq for CreateSessionEntityTypeRequest
Source§fn eq(&self, other: &CreateSessionEntityTypeRequest) -> bool
fn eq(&self, other: &CreateSessionEntityTypeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateSessionEntityTypeRequest
Auto Trait Implementations§
impl Freeze for CreateSessionEntityTypeRequest
impl RefUnwindSafe for CreateSessionEntityTypeRequest
impl Send for CreateSessionEntityTypeRequest
impl Sync for CreateSessionEntityTypeRequest
impl Unpin for CreateSessionEntityTypeRequest
impl UnwindSafe for CreateSessionEntityTypeRequest
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