pub enum AuthorError {
NotAp242 {
entity: &'static str,
},
DanglingRef {
entity: &'static str,
},
InvalidComplex {
reason: &'static str,
},
Cardinality {
entity: &'static str,
attribute: &'static str,
got: usize,
min: usize,
max: Option<usize>,
},
}Expand description
An authoring-time rejection: the input cannot be part of a strict AP242 model. These fire while an adapter is being developed; a correct adapter never triggers them.
Variants§
NotAp242
The referenced entity kind is not legal in AP242.
DanglingRef
The referenced id does not point at an existing entity.
InvalidComplex
The part set of a complex instance violates a schema rule.
Cardinality
An aggregate attribute’s element count is outside the schema’s
cardinality bounds (e.g. SET [1:?] given an empty set).
Trait Implementations§
Source§impl Clone for AuthorError
impl Clone for AuthorError
Source§fn clone(&self) -> AuthorError
fn clone(&self) -> AuthorError
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 AuthorError
impl Debug for AuthorError
Source§impl Display for AuthorError
impl Display for AuthorError
impl Eq for AuthorError
Source§impl Error for AuthorError
impl Error for AuthorError
1.30.0 · 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 PartialEq for AuthorError
impl PartialEq for AuthorError
Source§fn eq(&self, other: &AuthorError) -> bool
fn eq(&self, other: &AuthorError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthorError
Auto Trait Implementations§
impl Freeze for AuthorError
impl RefUnwindSafe for AuthorError
impl Send for AuthorError
impl Sync for AuthorError
impl Unpin for AuthorError
impl UnsafeUnpin for AuthorError
impl UnwindSafe for AuthorError
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