Trait SchemaExt

Source
pub trait SchemaExt {
    // Required methods
    fn get_type(&self) -> &Type;
    fn is_type_defined(&self) -> bool;
}
Expand description

Extension methods for Schema

Required Methods§

Source

fn get_type(&self) -> &Type

Returns the type of the schema Panics for oneOf, anyOf, allOf, or no type defined

Source

fn is_type_defined(&self) -> bool

Returns true if a specific type is defined, false on oneOf, anyOf, allOf, no type

Implementations on Foreign Types§

Source§

impl SchemaExt for Schema

Implementors§