Struct google_firestore1_beta1::api::Precondition
source · pub struct Precondition {
pub exists: Option<bool>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
A precondition on a document, used for conditional operations.
This type is not used in any activity, and only used as part of another schema.
Fields§
§exists: Option<bool>
When set to true
, the target document must exist. When set to false
, the target document must not exist.
update_time: Option<DateTime<Utc>>
When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Trait Implementations§
source§impl Clone for Precondition
impl Clone for Precondition
source§fn clone(&self) -> Precondition
fn clone(&self) -> Precondition
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 Precondition
impl Debug for Precondition
source§impl Default for Precondition
impl Default for Precondition
source§fn default() -> Precondition
fn default() -> Precondition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Precondition
impl<'de> Deserialize<'de> for Precondition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Precondition
impl Serialize for Precondition
impl Part for Precondition
Auto Trait Implementations§
impl RefUnwindSafe for Precondition
impl Send for Precondition
impl Sync for Precondition
impl Unpin for Precondition
impl UnwindSafe for Precondition
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