SchemaExt

Trait SchemaExt 

Source
pub trait SchemaExt: Schema {
    // Provided methods
    fn is_member(&self) -> bool { ... }
    fn is_structure(&self) -> bool { ... }
    fn is_union(&self) -> bool { ... }
    fn is_list(&self) -> bool { ... }
    fn is_map(&self) -> bool { ... }
    fn is_blob(&self) -> bool { ... }
    fn is_string(&self) -> bool { ... }
}
Expand description

Helper methods for Schema trait.

Provided Methods§

Source

fn is_member(&self) -> bool

Returns true if this is a member schema.

Source

fn is_structure(&self) -> bool

Returns true if this is a structure schema.

Source

fn is_union(&self) -> bool

Returns true if this is a union schema.

Source

fn is_list(&self) -> bool

Returns true if this is a list schema.

Source

fn is_map(&self) -> bool

Returns true if this is a map schema.

Source

fn is_blob(&self) -> bool

Returns true if this is a blob schema.

Source

fn is_string(&self) -> bool

Returns true if this is a string schema.

Implementors§

Source§

impl<T: Schema + ?Sized> SchemaExt for T