pub struct DocumentPatch { /* private fields */ }Expand description
Patch operations addressed to one document.
Implementations§
Source§impl DocumentPatch
impl DocumentPatch
Sourcepub fn new(document_id: DocumentId, patch_set: PatchSet) -> Self
pub fn new(document_id: DocumentId, patch_set: PatchSet) -> Self
Creates a document patch.
Sourcepub const fn document_id(&self) -> &DocumentId
pub const fn document_id(&self) -> &DocumentId
Returns the patched document identifier.
Trait Implementations§
Source§impl Clone for DocumentPatch
impl Clone for DocumentPatch
Source§fn clone(&self) -> DocumentPatch
fn clone(&self) -> DocumentPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentPatch
impl Debug for DocumentPatch
Source§impl PartialEq for DocumentPatch
impl PartialEq for DocumentPatch
Source§fn eq(&self, other: &DocumentPatch) -> bool
fn eq(&self, other: &DocumentPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DocumentPatch
impl StructuralPartialEq for DocumentPatch
Auto Trait Implementations§
impl Freeze for DocumentPatch
impl RefUnwindSafe for DocumentPatch
impl Send for DocumentPatch
impl Sync for DocumentPatch
impl Unpin for DocumentPatch
impl UnsafeUnpin for DocumentPatch
impl UnwindSafe for DocumentPatch
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