#[non_exhaustive]pub struct ImportDocumentsMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub operation_state: OperationState,
pub progress_documents: Option<Progress>,
pub progress_bytes: Option<Progress>,
pub collection_ids: Vec<String>,
pub input_uri_prefix: String,
pub namespace_ids: Vec<String>,
/* private fields */
}Expand description
Metadata for google.longrunning.Operation results from FirestoreAdmin.ImportDocuments.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_time: Option<Timestamp>The time this operation started.
end_time: Option<Timestamp>The time this operation completed. Will be unset if operation still in progress.
operation_state: OperationStateThe state of the import operation.
progress_documents: Option<Progress>The progress, in documents, of this operation.
progress_bytes: Option<Progress>The progress, in bytes, of this operation.
collection_ids: Vec<String>Which collection IDs are being imported.
input_uri_prefix: StringThe location of the documents being imported.
namespace_ids: Vec<String>Which namespace IDs are being imported.
Implementations§
Source§impl ImportDocumentsMetadata
impl ImportDocumentsMetadata
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = ImportDocumentsMetadata::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = ImportDocumentsMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = ImportDocumentsMetadata::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_operation_state<T: Into<OperationState>>(self, v: T) -> Self
pub fn set_operation_state<T: Into<OperationState>>(self, v: T) -> Self
Sets the value of operation_state.
§Example
use google_cloud_firestore_admin_v1::model::OperationState;
let x0 = ImportDocumentsMetadata::new().set_operation_state(OperationState::Initializing);
let x1 = ImportDocumentsMetadata::new().set_operation_state(OperationState::Processing);
let x2 = ImportDocumentsMetadata::new().set_operation_state(OperationState::Cancelling);Sourcepub fn set_progress_documents<T>(self, v: T) -> Self
pub fn set_progress_documents<T>(self, v: T) -> Self
Sets the value of progress_documents.
§Example
use google_cloud_firestore_admin_v1::model::Progress;
let x = ImportDocumentsMetadata::new().set_progress_documents(Progress::default()/* use setters */);Sourcepub fn set_or_clear_progress_documents<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_progress_documents<T>(self, v: Option<T>) -> Self
Sets or clears the value of progress_documents.
§Example
use google_cloud_firestore_admin_v1::model::Progress;
let x = ImportDocumentsMetadata::new().set_or_clear_progress_documents(Some(Progress::default()/* use setters */));
let x = ImportDocumentsMetadata::new().set_or_clear_progress_documents(None::<Progress>);Sourcepub fn set_progress_bytes<T>(self, v: T) -> Self
pub fn set_progress_bytes<T>(self, v: T) -> Self
Sets the value of progress_bytes.
§Example
use google_cloud_firestore_admin_v1::model::Progress;
let x = ImportDocumentsMetadata::new().set_progress_bytes(Progress::default()/* use setters */);Sourcepub fn set_or_clear_progress_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_progress_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of progress_bytes.
§Example
use google_cloud_firestore_admin_v1::model::Progress;
let x = ImportDocumentsMetadata::new().set_or_clear_progress_bytes(Some(Progress::default()/* use setters */));
let x = ImportDocumentsMetadata::new().set_or_clear_progress_bytes(None::<Progress>);Sourcepub fn set_collection_ids<T, V>(self, v: T) -> Self
pub fn set_collection_ids<T, V>(self, v: T) -> Self
Sets the value of collection_ids.
§Example
let x = ImportDocumentsMetadata::new().set_collection_ids(["a", "b", "c"]);Sourcepub fn set_input_uri_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_input_uri_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of input_uri_prefix.
§Example
let x = ImportDocumentsMetadata::new().set_input_uri_prefix("example");Sourcepub fn set_namespace_ids<T, V>(self, v: T) -> Self
pub fn set_namespace_ids<T, V>(self, v: T) -> Self
Sets the value of namespace_ids.
§Example
let x = ImportDocumentsMetadata::new().set_namespace_ids(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ImportDocumentsMetadata
impl Clone for ImportDocumentsMetadata
Source§fn clone(&self) -> ImportDocumentsMetadata
fn clone(&self) -> ImportDocumentsMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more