pub enum Innards {
Struct {
fields: &'static [Field],
},
HashMap {
value_shape: ShapeDesc,
},
Array(ShapeDesc),
Transparent(ShapeDesc),
Scalar(Scalar),
}
Expand description
The shape of a schema: is it more map-shaped, array-shaped, scalar-shaped?
Variants§
Struct
Struct with statically-known fields
HashMap
HashMap — keys are dynamic, values are homogeneous
Array(ShapeDesc)
Ordered list of heterogenous values, variable size
Transparent(ShapeDesc)
Transparent — forwards to another known schema
Scalar(Scalar)
Scalar — known based type
Trait Implementations§
impl Copy for Innards
impl Eq for Innards
impl StructuralPartialEq for Innards
Auto Trait Implementations§
impl Freeze for Innards
impl RefUnwindSafe for Innards
impl Send for Innards
impl Sync for Innards
impl Unpin for Innards
impl UnwindSafe for Innards
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