Enum firestore_grpc::google::firestore::v1beta1::precondition::ConditionType
source · pub enum ConditionType {
Exists(bool),
UpdateTime(Timestamp),
}
Expand description
The type of precondition.
Variants§
Exists(bool)
When set to true
, the target document must exist.
When set to false
, the target document must not exist.
UpdateTime(Timestamp)
When set, the target document must exist and have been last updated at that time.
Implementations§
source§impl ConditionType
impl ConditionType
Trait Implementations§
source§impl Clone for ConditionType
impl Clone for ConditionType
source§fn clone(&self) -> ConditionType
fn clone(&self) -> ConditionType
Returns a copy 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 ConditionType
impl Debug for ConditionType
source§impl PartialEq for ConditionType
impl PartialEq for ConditionType
source§fn eq(&self, other: &ConditionType) -> bool
fn eq(&self, other: &ConditionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConditionType
Auto Trait Implementations§
impl Freeze for ConditionType
impl RefUnwindSafe for ConditionType
impl Send for ConditionType
impl Sync for ConditionType
impl Unpin for ConditionType
impl UnwindSafe for ConditionType
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Wrap the input message
T
in a tonic::Request