pub struct TypeCheckError {
pub path: String,
pub expected: String,
pub actual: String,
pub actual_value: String,
}Expand description
Structured error from VarType::check with the path to the mismatch.
Fields§
§path: StringDotted path to the mismatched field (e.g. "tasks[2].title").
expected: StringThe expected type at that path.
actual: StringThe actual type found.
actual_value: StringPreview of the actual value.
Trait Implementations§
Source§impl Clone for TypeCheckError
impl Clone for TypeCheckError
Source§fn clone(&self) -> TypeCheckError
fn clone(&self) -> TypeCheckError
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 TypeCheckError
impl Debug for TypeCheckError
Auto Trait Implementations§
impl Freeze for TypeCheckError
impl RefUnwindSafe for TypeCheckError
impl Send for TypeCheckError
impl Sync for TypeCheckError
impl Unpin for TypeCheckError
impl UnsafeUnpin for TypeCheckError
impl UnwindSafe for TypeCheckError
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