pub struct UpdateResult {
pub op: UpdateOp,
pub doc_id: String,
pub path: String,
pub value: Box<dyn Debug>,
}Expand description
Describes the result of an update operation performed on a DittoMutDocument.
- set: Describes the
setupdate that was performed. - removed: Describes the
removeupdate that was performed. - incremented: Describes the
incrementupdate that was performed.
Fields§
§op: UpdateOpThe type of update operation performed.
doc_id: StringThe ID of the document updated.
path: StringThe path to the field in the document that was updated.
value: Box<dyn Debug>A printable representation of the updated value.
Auto Trait Implementations§
impl Freeze for UpdateResult
impl !RefUnwindSafe for UpdateResult
impl !Send for UpdateResult
impl !Sync for UpdateResult
impl Unpin for UpdateResult
impl !UnwindSafe for UpdateResult
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