pub enum DocumentBuilderError {
SchemaMustBeSet,
InvalidOperationLink(OperationId),
MultipleCreateOperations,
DocumentViewError(DocumentViewError),
GraphSortingError(GraphError),
DocumentReducerError(DocumentReducerError),
}Expand description
Error types for methods of DocumentBuilder struct.
Variants§
SchemaMustBeSet
To resolve a document the schema must be set.
InvalidOperationLink(OperationId)
An operation with invalid id or previous operations was added to the document.
MultipleCreateOperations
A document can only contain one CREATE operation.
DocumentViewError(DocumentViewError)
Handle errors from validating CBOR schemas.
GraphSortingError(GraphError)
Handle errors when sorting the graph.
DocumentReducerError(DocumentReducerError)
Handle errors from DocumentReducer.
Trait Implementations§
Source§impl Debug for DocumentBuilderError
impl Debug for DocumentBuilderError
Source§impl Display for DocumentBuilderError
impl Display for DocumentBuilderError
Source§impl Error for DocumentBuilderError
impl Error for DocumentBuilderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DocumentBuilderError> for DocumentStorageError
impl From<DocumentBuilderError> for DocumentStorageError
Source§fn from(source: DocumentBuilderError) -> Self
fn from(source: DocumentBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DocumentReducerError> for DocumentBuilderError
impl From<DocumentReducerError> for DocumentBuilderError
Source§fn from(source: DocumentReducerError) -> Self
fn from(source: DocumentReducerError) -> Self
Converts to this type from the input type.
Source§impl From<DocumentViewError> for DocumentBuilderError
impl From<DocumentViewError> for DocumentBuilderError
Source§fn from(source: DocumentViewError) -> Self
fn from(source: DocumentViewError) -> Self
Converts to this type from the input type.
Source§impl From<GraphError> for DocumentBuilderError
impl From<GraphError> for DocumentBuilderError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocumentBuilderError
impl RefUnwindSafe for DocumentBuilderError
impl Send for DocumentBuilderError
impl Sync for DocumentBuilderError
impl Unpin for DocumentBuilderError
impl UnwindSafe for DocumentBuilderError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more