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
Null
Boolean
Int
Long
Float
Double
Bytes
String
Record(Rc<RecordSchema<'a>>)
Error(Rc<RecordSchema<'a>>)
Enum(Rc<EnumSchema<'a>>)
Array
Fields of Array
Map
Fields of Map
Union
Fields 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 !=
.