pub enum AttrProblem {
NotInEnum {
allowed: Vec<&'static str>,
actual: String,
},
OutOfRange {
lo: i64,
hi: i64,
actual: i64,
},
OutOfRangeF {
lo: f64,
hi: f64,
actual: f64,
},
WrongType {
expected: &'static str,
},
BadFormat {
reason: &'static str,
},
}Expand description
What is wrong with an attribute value, surfaced inside
AdfSchemaViolation::InvalidAttr.
Variants§
NotInEnum
The value is a string but not in the allowed enum.
Fields
OutOfRange
The value is an integer outside the accepted range.
Fields
OutOfRangeF
The value is a number outside the accepted range.
Fields
WrongType
The value’s JSON kind is wrong.
BadFormat
The value is a string but doesn’t satisfy a structured constraint.
Trait Implementations§
Source§impl Clone for AttrProblem
impl Clone for AttrProblem
Source§fn clone(&self) -> AttrProblem
fn clone(&self) -> AttrProblem
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 AttrProblem
impl Debug for AttrProblem
Source§impl Display for AttrProblem
impl Display for AttrProblem
Source§impl PartialEq for AttrProblem
impl PartialEq for AttrProblem
Source§fn eq(&self, other: &AttrProblem) -> bool
fn eq(&self, other: &AttrProblem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttrProblem
Auto Trait Implementations§
impl Freeze for AttrProblem
impl RefUnwindSafe for AttrProblem
impl Send for AttrProblem
impl Sync for AttrProblem
impl Unpin for AttrProblem
impl UnsafeUnpin for AttrProblem
impl UnwindSafe for AttrProblem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.