pub enum PropValidationError {
MissingRequired(String),
InvalidValue {
name: String,
reason: String,
},
TypeMismatch {
name: String,
expected: String,
actual: String,
},
Multiple(Vec<PropValidationError>),
}
Expand description
Error indicating validation problems with props
Variants§
MissingRequired(String)
A required property was missing
InvalidValue
A property had an invalid value
TypeMismatch
A property had a type mismatch
Multiple(Vec<PropValidationError>)
Multiple validation errors
Trait Implementations§
Source§impl Clone for PropValidationError
impl Clone for PropValidationError
Source§fn clone(&self) -> PropValidationError
fn clone(&self) -> PropValidationError
Returns a copy of the value. Read more
1.0.0 · 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 PropValidationError
impl Debug for PropValidationError
Source§impl Display for PropValidationError
impl Display for PropValidationError
Source§impl Error for PropValidationError
impl Error for PropValidationError
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()
Auto Trait Implementations§
impl Freeze for PropValidationError
impl RefUnwindSafe for PropValidationError
impl Send for PropValidationError
impl Sync for PropValidationError
impl Unpin for PropValidationError
impl UnwindSafe for PropValidationError
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> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting