pub enum CoerceResult {
AlreadyCorrect,
Coerced(Value, String),
Failed,
}Expand description
Result of attempting to coerce a JSON value to match an expected schema type.
Variants§
AlreadyCorrect
Value already matches the expected type - no coercion needed.
Coerced(Value, String)
Value was coerced to the expected type. Contains the coerced value and a human-readable description of the conversion (e.g. “string to integer”).
Failed
Value cannot be coerced to the expected type.
Trait Implementations§
Source§impl Clone for CoerceResult
impl Clone for CoerceResult
Source§impl Debug for CoerceResult
impl Debug for CoerceResult
Source§impl PartialEq for CoerceResult
impl PartialEq for CoerceResult
impl StructuralPartialEq for CoerceResult
Auto Trait Implementations§
impl Freeze for CoerceResult
impl RefUnwindSafe for CoerceResult
impl Send for CoerceResult
impl Sync for CoerceResult
impl Unpin for CoerceResult
impl UnsafeUnpin for CoerceResult
impl UnwindSafe for CoerceResult
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