Struct avro_rs::schema::UnionSchema [−][src]
pub struct UnionSchema { /* fields omitted */ }
Methods
impl UnionSchema
[src]
impl UnionSchema
pub fn variants(&self) -> &[Schema]
[src]
pub fn variants(&self) -> &[Schema]
Returns a slice to all variants of this schema.
pub fn is_nullable(&self) -> bool
[src]
pub fn is_nullable(&self) -> bool
Returns true if the first variant of this UnionSchema
is Null
.
pub fn find_schema(&self, value: &Value) -> Option<(usize, &Schema)>
[src]
pub fn find_schema(&self, value: &Value) -> Option<(usize, &Schema)>
Optionally returns a reference to the schema matched by this value, as well as its position within this enum.
Trait Implementations
impl Debug for UnionSchema
[src]
impl Debug for UnionSchema
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for UnionSchema
[src]
impl Clone for UnionSchema
fn clone(&self) -> UnionSchema
[src]
fn clone(&self) -> UnionSchema
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for UnionSchema
[src]
impl PartialEq for UnionSchema
Auto Trait Implementations
impl Send for UnionSchema
impl Send for UnionSchema
impl Sync for UnionSchema
impl Sync for UnionSchema