pub struct StructError {
pub message: String,
}Expand description
Error raised by transform / validate when no error collector was
supplied (mirrors the TS throw new Error(errs.join(' | '))).
Fields§
§message: StringTrait Implementations§
Source§impl Clone for StructError
impl Clone for StructError
Source§fn clone(&self) -> StructError
fn clone(&self) -> StructError
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 StructError
impl Debug for StructError
Source§impl Display for StructError
impl Display for StructError
Source§impl Error for StructError
impl Error for StructError
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 StructError
impl RefUnwindSafe for StructError
impl Send for StructError
impl Sync for StructError
impl Unpin for StructError
impl UnsafeUnpin for StructError
impl UnwindSafe for StructError
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