[][src]Struct firestore_grpc_cloudrun::Write

pub struct Write {
    pub update_mask: Option<DocumentMask>,
    pub update_transforms: Vec<FieldTransform>,
    pub current_document: Option<Precondition>,
    pub operation: Option<Operation>,
}

A write on a document.

Fields

update_mask: Option<DocumentMask>

The fields to update in this write.

This field can be set only when the operation is update. If the mask is not set for an update and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.

update_transforms: Vec<FieldTransform>

The transforms to perform after update.

This field can be set only when the operation is update. If present, this write is equivalent to performing update and transform to the same document atomically and in order.

current_document: Option<Precondition>

An optional precondition on the document.

The write will fail if this is set and not met by the target document.

operation: Option<Operation>

The operation to execute.

Trait Implementations

impl Clone for Write[src]

impl Debug for Write[src]

impl Default for Write[src]

impl Message for Write[src]

impl PartialEq<Write> for Write[src]

impl StructuralPartialEq for Write[src]

Auto Trait Implementations

impl RefUnwindSafe for Write

impl Send for Write

impl Sync for Write

impl Unpin for Write

impl UnwindSafe for Write

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]