#[non_exhaustive]pub enum ValidationError {
AxisOutOfRange {
axis: String,
value: f32,
},
InvalidAxisName {
axis: String,
},
EmptyUserId,
UserIdTooLong {
max: usize,
},
InvalidUserIdChars,
ConfidenceOutOfRange {
value: f32,
},
MissingField {
field: String,
},
}Expand description
Validation errors for state data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AxisOutOfRange
Axis value is outside the valid range [0.0, 1.0].
InvalidAxisName
Axis name contains invalid characters.
EmptyUserId
User ID is empty.
UserIdTooLong
User ID exceeds maximum length.
InvalidUserIdChars
User ID contains invalid characters.
ConfidenceOutOfRange
Confidence value is outside valid range.
MissingField
Missing required field.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ValidationError> for AttunedError
impl From<ValidationError> for AttunedError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more