#[non_exhaustive]pub struct CreateConversationModelRequest {
pub parent: String,
pub conversation_model: Option<ConversationModel>,
/* private fields */
}Available on crate feature
conversation-models only.Expand description
The request message for ConversationModels.CreateConversationModel
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: StringThe project to create conversation model for. Format:
projects/<Project ID>
conversation_model: Option<ConversationModel>Required. The conversation model to create.
Implementations§
Source§impl CreateConversationModelRequest
impl CreateConversationModelRequest
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_conversation_model<T>(self, v: T) -> Selfwhere
T: Into<ConversationModel>,
pub fn set_conversation_model<T>(self, v: T) -> Selfwhere
T: Into<ConversationModel>,
Sets the value of conversation_model.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::ConversationModel;
let x = CreateConversationModelRequest::new().set_conversation_model(ConversationModel::default()/* use setters */);Sourcepub fn set_or_clear_conversation_model<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConversationModel>,
pub fn set_or_clear_conversation_model<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConversationModel>,
Sets or clears the value of conversation_model.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::ConversationModel;
let x = CreateConversationModelRequest::new().set_or_clear_conversation_model(Some(ConversationModel::default()/* use setters */));
let x = CreateConversationModelRequest::new().set_or_clear_conversation_model(None::<ConversationModel>);Trait Implementations§
Source§impl Clone for CreateConversationModelRequest
impl Clone for CreateConversationModelRequest
Source§fn clone(&self) -> CreateConversationModelRequest
fn clone(&self) -> CreateConversationModelRequest
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 CreateConversationModelRequest
impl Default for CreateConversationModelRequest
Source§fn default() -> CreateConversationModelRequest
fn default() -> CreateConversationModelRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateConversationModelRequest
impl PartialEq for CreateConversationModelRequest
Source§fn eq(&self, other: &CreateConversationModelRequest) -> bool
fn eq(&self, other: &CreateConversationModelRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateConversationModelRequest
Auto Trait Implementations§
impl Freeze for CreateConversationModelRequest
impl RefUnwindSafe for CreateConversationModelRequest
impl Send for CreateConversationModelRequest
impl Sync for CreateConversationModelRequest
impl Unpin for CreateConversationModelRequest
impl UnwindSafe for CreateConversationModelRequest
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