pub enum AnnotationError {
Marker {
source: Box<ValueError>,
},
MissingValue,
FieldSetTwice {
field: MarkerField,
},
StyleOnNonString,
OrderOutsideObject,
DottedOnNonObject,
}Expand description
Error returned while decoding inline annotation markers.
Variants§
Marker
An annotation marker does not have the expected shape.
MissingValue
An annotation marker has no value field.
FieldSetTwice
An annotation field was set more than once by composed wrappers.
Fields
§
field: MarkerFieldThe field that was set twice.
StyleOnNonString
An annotation requests a string style for a value that is not a string.
OrderOutsideObject
An annotation sets order on a value that is not an object entry.
DottedOnNonObject
An annotation requests a dotted table for a value that is not an object.
Trait Implementations§
Source§impl Debug for AnnotationError
impl Debug for AnnotationError
Source§impl Display for AnnotationError
impl Display for AnnotationError
Source§impl Error for AnnotationError
impl Error for AnnotationError
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()
Auto Trait Implementations§
impl Freeze for AnnotationError
impl RefUnwindSafe for AnnotationError
impl Send for AnnotationError
impl Sync for AnnotationError
impl Unpin for AnnotationError
impl UnsafeUnpin for AnnotationError
impl UnwindSafe for AnnotationError
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