Struct google_api_proto::google::firestore::admin::v1beta1::IndexOperationMetadata
source · pub struct IndexOperationMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub index: String,
pub operation_type: i32,
pub cancelled: bool,
pub document_progress: Option<Progress>,
}
Expand description
Metadata for index operations. This metadata populates the metadata field of [google.longrunning.Operation][google.longrunning.Operation].
Fields§
§start_time: Option<Timestamp>
The time that work began on the operation.
end_time: Option<Timestamp>
The time the operation ended, either successfully or otherwise. Unset if the operation is still active.
index: String
The index resource that this operation is acting on. For example:
projects/{project_id}/databases/{database_id}/indexes/{index_id}
operation_type: i32
The type of index operation.
cancelled: bool
True if the [google.longrunning.Operation] was cancelled. If the cancellation is in progress, cancelled will be true but [google.longrunning.Operation.done][google.longrunning.Operation.done] will be false.
document_progress: Option<Progress>
Progress of the existing operation, measured in number of documents.
Implementations§
source§impl IndexOperationMetadata
impl IndexOperationMetadata
sourcepub fn operation_type(&self) -> OperationType
pub fn operation_type(&self) -> OperationType
Returns the enum value of operation_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operation_type(&mut self, value: OperationType)
pub fn set_operation_type(&mut self, value: OperationType)
Sets operation_type
to the provided enum value.
Trait Implementations§
source§impl Clone for IndexOperationMetadata
impl Clone for IndexOperationMetadata
source§fn clone(&self) -> IndexOperationMetadata
fn clone(&self) -> IndexOperationMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IndexOperationMetadata
impl Debug for IndexOperationMetadata
source§impl Default for IndexOperationMetadata
impl Default for IndexOperationMetadata
source§impl Message for IndexOperationMetadata
impl Message for IndexOperationMetadata
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 IndexOperationMetadata
impl PartialEq for IndexOperationMetadata
source§fn eq(&self, other: &IndexOperationMetadata) -> bool
fn eq(&self, other: &IndexOperationMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.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
§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