pub enum CommitError {
MissingEntry(EntryRef),
MissingParent(EntryRef),
MissingDoc(Hash),
MissingDocRef {
doc: Hash,
target: Hash,
},
MissingSchema {
doc: Hash,
schema: Hash,
},
}Variants§
MissingEntry(EntryRef)
Tried to change or delete an entry but it wasn’t in the DB
MissingParent(EntryRef)
Tried to add an entry but its parent document wasn’t in the DB
MissingDoc(Hash)
Tried to change a document’s references but it wasn’t in the DB
MissingDocRef
Tried to change a document’s references but the ref wasn’t in the document
MissingSchema
Tried to add a document but the schema was missing
Trait Implementations§
Source§impl Clone for CommitError
impl Clone for CommitError
Source§fn clone(&self) -> CommitError
fn clone(&self) -> CommitError
Returns a duplicate 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 CommitError
impl Debug for CommitError
Source§impl PartialEq for CommitError
impl PartialEq for CommitError
impl Eq for CommitError
impl StructuralPartialEq for CommitError
Auto Trait Implementations§
impl Freeze for CommitError
impl RefUnwindSafe for CommitError
impl Send for CommitError
impl Sync for CommitError
impl Unpin for CommitError
impl UnwindSafe for CommitError
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