pub trait SerdeShape {
// Required method
fn shape_in(context: &mut ShapeContext) -> ShapeRef;
// Provided method
fn shape() -> Shape
where Self: Sized { ... }
}Expand description
A type that can describe the shape accepted by its Serde deserializer.
Required Methods§
Sourcefn shape_in(context: &mut ShapeContext) -> ShapeRef
fn shape_in(context: &mut ShapeContext) -> ShapeRef
Build this type’s shape inside the provided context.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".