Struct google_firestore1_beta1::api::DocumentChange
source · pub struct DocumentChange {
pub document: Option<Document>,
pub removed_target_ids: Option<Vec<i32>>,
pub target_ids: Option<Vec<i32>>,
}
Expand description
A Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected.
This type is not used in any activity, and only used as part of another schema.
Fields§
§document: Option<Document>
The new state of the Document. If mask
is set, contains only fields that were updated or added.
removed_target_ids: Option<Vec<i32>>
A set of target IDs for targets that no longer match this document.
target_ids: Option<Vec<i32>>
A set of target IDs of targets that match this document.
Trait Implementations§
source§impl Clone for DocumentChange
impl Clone for DocumentChange
source§fn clone(&self) -> DocumentChange
fn clone(&self) -> DocumentChange
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 DocumentChange
impl Debug for DocumentChange
source§impl Default for DocumentChange
impl Default for DocumentChange
source§fn default() -> DocumentChange
fn default() -> DocumentChange
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DocumentChange
impl<'de> Deserialize<'de> for DocumentChange
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 DocumentChange
impl Serialize for DocumentChange
impl Part for DocumentChange
Auto Trait Implementations§
impl RefUnwindSafe for DocumentChange
impl Send for DocumentChange
impl Sync for DocumentChange
impl Unpin for DocumentChange
impl UnwindSafe for DocumentChange
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