pub enum FitIssue {
MissingMarker {
tag: String,
spec: String,
},
WrongType {
tag: String,
expected: String,
actual: String,
},
InvalidRef {
tag: String,
expected: String,
actual: String,
},
MissingChoice {
tag: String,
options: Vec<String>,
},
ConstraintViolation {
tag: String,
constraint: String,
detail: String,
},
InvalidChoice {
tag: String,
value: String,
valid_options: Vec<String>,
},
}Expand description
Describes why an entity does not fit a type.
Variants§
MissingMarker
Entity is missing a mandatory marker tag.
WrongType
Tag value has wrong type.
Fields
InvalidRef
Ref tag points to wrong entity type.
Fields
MissingChoice
Entity is missing a required choice selection.
ConstraintViolation
A value constraint was violated (minVal, maxVal, pattern, etc.)
Fields
InvalidChoice
A choice slot has an invalid value.
Trait Implementations§
impl StructuralPartialEq for FitIssue
Auto Trait Implementations§
impl Freeze for FitIssue
impl RefUnwindSafe for FitIssue
impl Send for FitIssue
impl Sync for FitIssue
impl Unpin for FitIssue
impl UnsafeUnpin for FitIssue
impl UnwindSafe for FitIssue
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> 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