Struct google_firestore1_beta1::api::Write [−][src]
A write on a document.
This type is not used in any activity, and only used as part of another schema.
Fields
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.
delete: Option<String>A document name to delete. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.
transform: Option<DocumentTransform>Applies a transformation to a document.
update: Option<Document>A document to write.
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: Option<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.
Trait Implementations
impl Clone for Write[src]
impl Debug for Write[src]
impl Default for Write[src]
impl<'de> Deserialize<'de> for Write[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for Write[src]
impl Serialize for Write[src]
Auto Trait Implementations
impl RefUnwindSafe for Write[src]
impl Send for Write[src]
impl Sync for Write[src]
impl Unpin for Write[src]
impl UnwindSafe for Write[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,