Struct google_api_proto::google::firestore::admin::v1beta2::FieldOperationMetadata
source · pub struct FieldOperationMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub field: String,
pub index_config_deltas: Vec<IndexConfigDelta>,
pub state: i32,
pub document_progress: Option<Progress>,
pub bytes_progress: Option<Progress>,
}
Expand description
Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from [FirestoreAdmin.UpdateField][google.firestore.admin.v1beta2.FirestoreAdmin.UpdateField].
Fields§
§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: String
The 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][google.firestore.admin.v1beta2.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this operation.
state: i32
The state of the operation.
document_progress: Option<Progress>
The progress, in documents, of this operation.
bytes_progress: Option<Progress>
The progress, in bytes, of this operation.
Implementations§
source§impl FieldOperationMetadata
impl FieldOperationMetadata
sourcepub fn state(&self) -> OperationState
pub fn state(&self) -> OperationState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: OperationState)
pub fn set_state(&mut self, value: OperationState)
Sets state
to the provided enum value.
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 moresource§impl Debug for FieldOperationMetadata
impl Debug for FieldOperationMetadata
source§impl Default for FieldOperationMetadata
impl Default for FieldOperationMetadata
source§impl Message for FieldOperationMetadata
impl Message for FieldOperationMetadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for FieldOperationMetadata
impl PartialEq for FieldOperationMetadata
source§fn eq(&self, other: &FieldOperationMetadata) -> bool
fn eq(&self, other: &FieldOperationMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FieldOperationMetadata
Auto Trait Implementations§
impl Freeze for FieldOperationMetadata
impl RefUnwindSafe for FieldOperationMetadata
impl Send for FieldOperationMetadata
impl Sync for FieldOperationMetadata
impl Unpin for FieldOperationMetadata
impl UnwindSafe for FieldOperationMetadata
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request