pub enum TypeBody {
Wrapped(FieldType),
Map {
key: FieldType,
value: ValueSchema,
max_items: u32,
},
Set {
item: FieldType,
max_items: u32,
},
Record(&'static [FieldSchema]),
Enum(&'static [VariantSchema]),
}Expand description
A compiled named type; record/enum members use canonical name order.
Variants§
Wrapped(FieldType)
Named wrapper around a primitive or a bounded ordered list.
Map
Canonical map with scalar/unit-enum keys and arbitrary admitted value shapes.
Fields
§
value: ValueSchemaValue type and optionality, independent of map presence.
Set
Canonical scalar/unit-enum set. Stored elements must be strictly increasing.
Fields
Record(&'static [FieldSchema])
Stored fields; nested entity references are not supported.
Enum(&'static [VariantSchema])
Named alternatives, each with at most one typed payload.
Trait Implementations§
impl Eq for TypeBody
impl StructuralPartialEq for TypeBody
Auto Trait Implementations§
impl Forget for TypeBody
impl Freeze for TypeBody
impl Move for TypeBody
impl RefUnwindSafe for TypeBody
impl Send for TypeBody
impl Sync for TypeBody
impl Unpin for TypeBody
impl UnsafeUnpin for TypeBody
impl UnwindSafe for TypeBody
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