#[non_exhaustive]pub struct FieldOperationMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub field: String,
pub index_config_deltas: Vec<IndexConfigDelta>,
pub state: OperationState,
pub progress_documents: Option<Progress>,
pub progress_bytes: Option<Progress>,
pub ttl_config_delta: Option<TtlConfigDelta>,
/* private fields */
}Expand description
Metadata for google.longrunning.Operation results from FirestoreAdmin.UpdateField.
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.
field: StringThe field resource that this operation is acting on. For example:
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
index_config_deltas: Vec<IndexConfigDelta>A list of IndexConfigDelta, which describe the intent of this operation.
state: OperationStateThe state of the operation.
progress_documents: Option<Progress>The progress, in documents, of this operation.
progress_bytes: Option<Progress>The progress, in bytes, of this operation.
ttl_config_delta: Option<TtlConfigDelta>Describes the deltas of TTL configuration.
Implementations§
Source§impl FieldOperationMetadata
impl FieldOperationMetadata
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 = FieldOperationMetadata::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 = FieldOperationMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = FieldOperationMetadata::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_index_config_deltas<T, V>(self, v: T) -> Self
pub fn set_index_config_deltas<T, V>(self, v: T) -> Self
Sets the value of index_config_deltas.
§Example
use google_cloud_firestore_admin_v1::model::field_operation_metadata::IndexConfigDelta;
let x = FieldOperationMetadata::new()
.set_index_config_deltas([
IndexConfigDelta::default()/* use setters */,
IndexConfigDelta::default()/* use (different) setters */,
]);Sourcepub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
pub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
Sets the value of state.
§Example
use google_cloud_firestore_admin_v1::model::OperationState;
let x0 = FieldOperationMetadata::new().set_state(OperationState::Initializing);
let x1 = FieldOperationMetadata::new().set_state(OperationState::Processing);
let x2 = FieldOperationMetadata::new().set_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 = FieldOperationMetadata::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 = FieldOperationMetadata::new().set_or_clear_progress_documents(Some(Progress::default()/* use setters */));
let x = FieldOperationMetadata::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 = FieldOperationMetadata::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 = FieldOperationMetadata::new().set_or_clear_progress_bytes(Some(Progress::default()/* use setters */));
let x = FieldOperationMetadata::new().set_or_clear_progress_bytes(None::<Progress>);Sourcepub fn set_ttl_config_delta<T>(self, v: T) -> Selfwhere
T: Into<TtlConfigDelta>,
pub fn set_ttl_config_delta<T>(self, v: T) -> Selfwhere
T: Into<TtlConfigDelta>,
Sets the value of ttl_config_delta.
§Example
use google_cloud_firestore_admin_v1::model::field_operation_metadata::TtlConfigDelta;
let x = FieldOperationMetadata::new().set_ttl_config_delta(TtlConfigDelta::default()/* use setters */);Sourcepub fn set_or_clear_ttl_config_delta<T>(self, v: Option<T>) -> Selfwhere
T: Into<TtlConfigDelta>,
pub fn set_or_clear_ttl_config_delta<T>(self, v: Option<T>) -> Selfwhere
T: Into<TtlConfigDelta>,
Sets or clears the value of ttl_config_delta.
§Example
use google_cloud_firestore_admin_v1::model::field_operation_metadata::TtlConfigDelta;
let x = FieldOperationMetadata::new().set_or_clear_ttl_config_delta(Some(TtlConfigDelta::default()/* use setters */));
let x = FieldOperationMetadata::new().set_or_clear_ttl_config_delta(None::<TtlConfigDelta>);Trait Implementations§
Source§impl Clone for FieldOperationMetadata
impl Clone for FieldOperationMetadata
Source§fn clone(&self) -> FieldOperationMetadata
fn clone(&self) -> FieldOperationMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more