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