pub enum Schema<'a> {
Show 15 variants
Null,
Boolean,
Int,
Long,
Float,
Double,
Bytes,
String,
Record(Rc<RecordSchema<'a>>),
Error(Rc<RecordSchema<'a>>),
Enum(Rc<EnumSchema<'a>>),
Array {
items: Box<Schema<'a>>,
},
Map {
values: Box<Schema<'a>>,
},
Union {
tys: Vec<Schema<'a>>,
},
Fixed(Rc<FixedSchema<'a>>),
}Variants§
Null
Boolean
Int
Long
Float
Double
Bytes
String
Record(Rc<RecordSchema<'a>>)
Error(Rc<RecordSchema<'a>>)
Enum(Rc<EnumSchema<'a>>)
Array
Map
Union
Fixed(Rc<FixedSchema<'a>>)
Trait Implementations§
impl<'a> StructuralPartialEq for Schema<'a>
Auto Trait Implementations§
impl<'a> Freeze for Schema<'a>
impl<'a> RefUnwindSafe for Schema<'a>
impl<'a> !Send for Schema<'a>
impl<'a> !Sync for Schema<'a>
impl<'a> Unpin for Schema<'a>
impl<'a> UnwindSafe for Schema<'a>
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