pub enum ShapeKind {
Str,
Number {
integer: bool,
},
Bool,
Coerced,
Object {
fields: Vec<ObjectFieldDesc>,
},
}Expand description
Primitive families distinguishable through erasure.
Variants§
Str
String schema.
Number
Number schema; integer marks i64-family schemas.
Bool
Boolean schema.
Coerced
Coercing string-to-type schema.
Object
Object schema; declared fields in declaration order.
Fields
§
fields: Vec<ObjectFieldDesc>Declared fields, derived from the same registry the kernel walks.
Trait Implementations§
impl StructuralPartialEq for ShapeKind
Auto Trait Implementations§
impl Freeze for ShapeKind
impl RefUnwindSafe for ShapeKind
impl Send for ShapeKind
impl Sync for ShapeKind
impl Unpin for ShapeKind
impl UnsafeUnpin for ShapeKind
impl UnwindSafe for ShapeKind
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