Struct mongodb::change_stream::event::UpdateDescription
source · [−]#[non_exhaustive]pub struct UpdateDescription {
pub updated_fields: Document,
pub removed_fields: Vec<String>,
pub truncated_arrays: Option<Vec<TruncatedArray>>,
}
Expand description
Describes which fields have been updated or removed from a document.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.updated_fields: Document
A Document
containing key:value pairs of names of the fields that were changed, and the
new value for those fields.
removed_fields: Vec<String>
An array of field names that were removed from the Document
.
truncated_arrays: Option<Vec<TruncatedArray>>
Arrays that were truncated in the Document
.
Trait Implementations
sourceimpl Debug for UpdateDescription
impl Debug for UpdateDescription
sourceimpl<'de> Deserialize<'de> for UpdateDescription
impl<'de> Deserialize<'de> for UpdateDescription
sourcefn 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
sourceimpl PartialEq<UpdateDescription> for UpdateDescription
impl PartialEq<UpdateDescription> for UpdateDescription
sourcefn eq(&self, other: &UpdateDescription) -> bool
fn eq(&self, other: &UpdateDescription) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateDescription) -> bool
fn ne(&self, other: &UpdateDescription) -> bool
This method tests for !=
.
sourceimpl Serialize for UpdateDescription
impl Serialize for UpdateDescription
impl StructuralPartialEq for UpdateDescription
Auto Trait Implementations
impl RefUnwindSafe for UpdateDescription
impl Send for UpdateDescription
impl Sync for UpdateDescription
impl Unpin for UpdateDescription
impl UnwindSafe for UpdateDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more