#[non_exhaustive]pub struct ExportDocumentsMetadata {
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 output_uri_prefix: String,
pub namespace_ids: Vec<String>,
pub snapshot_time: Option<Timestamp>,
/* private fields */
}Expand description
Metadata for google.longrunning.Operation results from FirestoreAdmin.ExportDocuments.
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 export 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 exported.
output_uri_prefix: StringWhere the documents are being exported to.
namespace_ids: Vec<String>Which namespace IDs are being exported.
snapshot_time: Option<Timestamp>The timestamp that corresponds to the version of the database that is being exported. If unspecified, there are no guarantees about the consistency of the documents being exported.
Implementations§
Source§impl ExportDocumentsMetadata
impl ExportDocumentsMetadata
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 = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::new().set_operation_state(OperationState::Initializing);
let x1 = ExportDocumentsMetadata::new().set_operation_state(OperationState::Processing);
let x2 = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::new().set_or_clear_progress_documents(Some(Progress::default()/* use setters */));
let x = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::new().set_or_clear_progress_bytes(Some(Progress::default()/* use setters */));
let x = ExportDocumentsMetadata::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 = ExportDocumentsMetadata::new().set_collection_ids(["a", "b", "c"]);Sourcepub fn set_output_uri_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_output_uri_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of output_uri_prefix.
§Example
let x = ExportDocumentsMetadata::new().set_output_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 = ExportDocumentsMetadata::new().set_namespace_ids(["a", "b", "c"]);Sourcepub fn set_snapshot_time<T>(self, v: T) -> Self
pub fn set_snapshot_time<T>(self, v: T) -> Self
Sets the value of snapshot_time.
§Example
use wkt::Timestamp;
let x = ExportDocumentsMetadata::new().set_snapshot_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_snapshot_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_snapshot_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of snapshot_time.
§Example
use wkt::Timestamp;
let x = ExportDocumentsMetadata::new().set_or_clear_snapshot_time(Some(Timestamp::default()/* use setters */));
let x = ExportDocumentsMetadata::new().set_or_clear_snapshot_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for ExportDocumentsMetadata
impl Clone for ExportDocumentsMetadata
Source§fn clone(&self) -> ExportDocumentsMetadata
fn clone(&self) -> ExportDocumentsMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more