pub enum SchemaTyp {
Scalar(ScalarTyp),
Array(u32, Box<SchemaTyp>),
Vec(Box<SchemaTyp>),
Optional(Box<SchemaTyp>),
SimpleEnum {
name: String,
variants: Vec<(u8, String)>,
},
Struct {
name: String,
fields: SchemaFields,
},
Enum {
name: String,
variants: Vec<(u8, String, SchemaTyp)>,
},
Custom(String, Vec<SchemaTyp>),
}Expand description
Owned runtime mirror of Typ. Reuses ScalarTyp. Deserializable
(impl Rapira — in the rapira crate, Plan 2).
Variants§
Scalar(ScalarTyp)
Array(u32, Box<SchemaTyp>)
Vec(Box<SchemaTyp>)
Optional(Box<SchemaTyp>)
SimpleEnum
Struct
Enum
Custom(String, Vec<SchemaTyp>)
Trait Implementations§
impl Eq for SchemaTyp
impl StructuralPartialEq for SchemaTyp
Auto Trait Implementations§
impl Freeze for SchemaTyp
impl RefUnwindSafe for SchemaTyp
impl Send for SchemaTyp
impl Sync for SchemaTyp
impl Unpin for SchemaTyp
impl UnsafeUnpin for SchemaTyp
impl UnwindSafe for SchemaTyp
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