#[non_exhaustive]pub struct IndexOperationMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub index: String,
pub state: OperationState,
pub progress_documents: Option<Progress>,
pub progress_bytes: Option<Progress>,
/* private fields */
}Expand description
Metadata for google.longrunning.Operation results from FirestoreAdmin.CreateIndex.
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.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.
index: StringThe index resource that this operation is acting on. For example:
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}
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.
Implementations§
Source§impl IndexOperationMetadata
impl IndexOperationMetadata
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 = IndexOperationMetadata::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 = IndexOperationMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = IndexOperationMetadata::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_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 = IndexOperationMetadata::new().set_state(OperationState::Initializing);
let x1 = IndexOperationMetadata::new().set_state(OperationState::Processing);
let x2 = IndexOperationMetadata::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 = IndexOperationMetadata::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 = IndexOperationMetadata::new().set_or_clear_progress_documents(Some(Progress::default()/* use setters */));
let x = IndexOperationMetadata::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 = IndexOperationMetadata::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 = IndexOperationMetadata::new().set_or_clear_progress_bytes(Some(Progress::default()/* use setters */));
let x = IndexOperationMetadata::new().set_or_clear_progress_bytes(None::<Progress>);Trait Implementations§
Source§impl Clone for IndexOperationMetadata
impl Clone for IndexOperationMetadata
Source§fn clone(&self) -> IndexOperationMetadata
fn clone(&self) -> IndexOperationMetadata
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 Debug for IndexOperationMetadata
impl Debug for IndexOperationMetadata
Source§impl Default for IndexOperationMetadata
impl Default for IndexOperationMetadata
Source§fn default() -> IndexOperationMetadata
fn default() -> IndexOperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for IndexOperationMetadata
impl Message for IndexOperationMetadata
Source§impl PartialEq for IndexOperationMetadata
impl PartialEq for IndexOperationMetadata
impl StructuralPartialEq for IndexOperationMetadata
Auto Trait Implementations§
impl Freeze for IndexOperationMetadata
impl RefUnwindSafe for IndexOperationMetadata
impl Send for IndexOperationMetadata
impl Sync for IndexOperationMetadata
impl Unpin for IndexOperationMetadata
impl UnwindSafe for IndexOperationMetadata
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