pub struct DocumentDiff { /* private fields */ }Implementations§
Source§impl DocumentDiff
impl DocumentDiff
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Returns true if there are any changes
Sourcepub fn changed_keys(&self) -> HashSet<&String>
pub fn changed_keys(&self) -> HashSet<&String>
Get all keys that changed
Sourcepub fn key_changed(&self, key: &str) -> bool
pub fn key_changed(&self, key: &str) -> bool
Check if a specific key was changed
Sourcepub fn get_change(&self, key: &str) -> Option<&ValueChange>
pub fn get_change(&self, key: &str) -> Option<&ValueChange>
Get the specific change for a key
Trait Implementations§
Source§impl Debug for DocumentDiff
impl Debug for DocumentDiff
Source§impl Default for DocumentDiff
impl Default for DocumentDiff
Source§fn default() -> DocumentDiff
fn default() -> DocumentDiff
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentDiff
impl RefUnwindSafe for DocumentDiff
impl Send for DocumentDiff
impl Sync for DocumentDiff
impl Unpin for DocumentDiff
impl UnwindSafe for DocumentDiff
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