[][src]Struct google_firestore1_beta1::Write

pub struct Write {
    pub delete: Option<String>,
    pub current_document: Option<Precondition>,
    pub update_mask: Option<DocumentMask>,
    pub transform: Option<DocumentTransform>,
    pub update: Option<Document>,
}

A write on a document.

This type is not used in any activity, and only used as part of another schema.

Fields

delete: Option<String>

A document name to delete. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.

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.

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.

transform: Option<DocumentTransform>

Applies a transformation to a document. At most one transform per document is allowed in a given request. An update cannot follow a transform on the same document in a given request.

update: Option<Document>

A document to write.

Trait Implementations

impl Part for Write[src]

impl Default for Write[src]

impl Clone for Write[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Write[src]

impl Serialize for Write[src]

impl<'de> Deserialize<'de> for Write[src]

Auto Trait Implementations

impl Send for Write

impl Unpin for Write

impl Sync for Write

impl UnwindSafe for Write

impl RefUnwindSafe for Write

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]