pub enum MetadataError {
Show 14 variants
EmptyDocumentId,
CarrierSubjectMismatch,
DocumentProvenanceIsImplicit,
EmptyAssertionSources,
DocumentSourceOwnerMismatch,
DuplicateSourceSelector(Box<AssertionKey>),
UnmatchedSourceSelector(Box<AssertionKey>),
SourceSelectorOwnerMismatch(Box<AssertionKey>),
SourceSelectorCarrierUnsupported(Box<AssertionKey>),
AssertionNotFound,
AssertionCollision(Box<AssertionKey>),
SourceKnowledgeConflict(Box<AssertionKey>),
UnknownSourceOwnership,
NamedGraphUnsupported,
}Expand description
A metadata model or first-increment graph-execution error.
Variants§
EmptyDocumentId
A document identity cannot be empty.
CarrierSubjectMismatch
A node-local carrier must describe its enclosing node.
DocumentProvenanceIsImplicit
Document provenance comes only from the assertion owner.
EmptyAssertionSources
An explicit source list must contain at least one source.
DocumentSourceOwnerMismatch
A document source tag must name the assertion owner.
DuplicateSourceSelector(Box<AssertionKey>)
One table must not select the same assertion twice.
UnmatchedSourceSelector(Box<AssertionKey>)
The selector must name an assertion authored by this document.
SourceSelectorOwnerMismatch(Box<AssertionKey>)
The table’s owner and the selector’s owner must agree.
SourceSelectorCarrierUnsupported(Box<AssertionKey>)
Document-level source tables cannot override sidecar assertions.
AssertionNotFound
The old assertion must exist before an atomic rewrite.
AssertionCollision(Box<AssertionKey>)
Rewriting into another authored assertion would merge distinct ownership.
SourceKnowledgeConflict(Box<AssertionKey>)
Duplicate assertions cannot merge known and unknown source ownership.
UnknownSourceOwnership
Source-dependent edits require explicit ownership for every assertion in scope.
NamedGraphUnsupported
Named graph identity is modeled but cannot be inserted into this executor.
Trait Implementations§
Source§impl Clone for MetadataError
impl Clone for MetadataError
Source§impl Debug for MetadataError
impl Debug for MetadataError
Source§impl Display for MetadataError
impl Display for MetadataError
impl Eq for MetadataError
Source§impl Error for MetadataError
impl Error for MetadataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<MetadataError> for DocumentGraphError
impl From<MetadataError> for DocumentGraphError
Source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Source§impl<E> From<MetadataError> for GraphMapError<E>
impl<E> From<MetadataError> for GraphMapError<E>
Source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Source§impl PartialEq for MetadataError
impl PartialEq for MetadataError
impl StructuralPartialEq for MetadataError
Auto Trait Implementations§
impl Freeze for MetadataError
impl RefUnwindSafe for MetadataError
impl Send for MetadataError
impl Sync for MetadataError
impl Unpin for MetadataError
impl UnsafeUnpin for MetadataError
impl UnwindSafe for MetadataError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.