pub struct Seed<'a> {
pub ty: &'a Type,
}Expand description
A type-directed serde::de::DeserializeSeed that decodes JSON straight
into a stmt::Value of the seed’s stmt::Type — no serde_json::Value
intermediate. The type is required because the wire form is ambiguous for
scalars (Uuid/String are both strings; the integer widths are all
numbers). A structural Type::Object position switches to shape-directed
decoding ([AnySeed]).
Fields§
§ty: &'a TypeThe expected type of the value being decoded.
Trait Implementations§
Source§impl<'de> DeserializeSeed<'de> for Seed<'_>
impl<'de> DeserializeSeed<'de> for Seed<'_>
Auto Trait Implementations§
impl<'a> Freeze for Seed<'a>
impl<'a> RefUnwindSafe for Seed<'a>
impl<'a> Send for Seed<'a>
impl<'a> Sync for Seed<'a>
impl<'a> Unpin for Seed<'a>
impl<'a> UnsafeUnpin for Seed<'a>
impl<'a> UnwindSafe for Seed<'a>
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