#[non_exhaustive]pub struct ImportConversationDataOperationMetadata {
pub conversation_dataset: String,
pub partial_failures: Vec<Status>,
pub create_time: Option<Timestamp>,
/* private fields */
}Available on crate feature
conversation-datasets only.Expand description
Metadata for a ConversationDatasets.ImportConversationData operation.
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.conversation_dataset: StringThe resource name of the imported conversation dataset. Format:
projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset Id>
partial_failures: Vec<Status>Partial failures are failures that don’t fail the whole long running operation, e.g. single files that couldn’t be read.
create_time: Option<Timestamp>Timestamp when import conversation data request was created. The time is measured on server side.
Implementations§
Source§impl ImportConversationDataOperationMetadata
impl ImportConversationDataOperationMetadata
pub fn new() -> Self
Sourcepub fn set_conversation_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_conversation_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of conversation_dataset.
§Example
ⓘ
let x = ImportConversationDataOperationMetadata::new().set_conversation_dataset("example");Sourcepub fn set_partial_failures<T, V>(self, v: T) -> Self
pub fn set_partial_failures<T, V>(self, v: T) -> Self
Sets the value of partial_failures.
§Example
ⓘ
use rpc::model::Status;
let x = ImportConversationDataOperationMetadata::new()
.set_partial_failures([
Status::default()/* use setters */,
Status::default()/* use (different) setters */,
]);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ImportConversationDataOperationMetadata::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ImportConversationDataOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ImportConversationDataOperationMetadata::new().set_or_clear_create_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for ImportConversationDataOperationMetadata
impl Clone for ImportConversationDataOperationMetadata
Source§fn clone(&self) -> ImportConversationDataOperationMetadata
fn clone(&self) -> ImportConversationDataOperationMetadata
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 ImportConversationDataOperationMetadata
impl Default for ImportConversationDataOperationMetadata
Source§fn default() -> ImportConversationDataOperationMetadata
fn default() -> ImportConversationDataOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportConversationDataOperationMetadata
impl PartialEq for ImportConversationDataOperationMetadata
Source§fn eq(&self, other: &ImportConversationDataOperationMetadata) -> bool
fn eq(&self, other: &ImportConversationDataOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportConversationDataOperationMetadata
Auto Trait Implementations§
impl Freeze for ImportConversationDataOperationMetadata
impl RefUnwindSafe for ImportConversationDataOperationMetadata
impl Send for ImportConversationDataOperationMetadata
impl Sync for ImportConversationDataOperationMetadata
impl Unpin for ImportConversationDataOperationMetadata
impl UnwindSafe for ImportConversationDataOperationMetadata
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