pub enum Schema<'a> {
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
NullBooleanIntLongFloatDoubleBytesStringRecord(Rc<RecordSchema<'a>>)Error(Rc<RecordSchema<'a>>)Enum(Rc<EnumSchema<'a>>)ArrayFields of Array
MapFields of Map
UnionFields of Union
Fixed(Rc<FixedSchema<'a>>)Trait Implementations
Formats the value using the given formatter.
fn eq(&self, __arg_0: &Schema<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Schema<'a>) -> bool
This method tests for !=.