pub trait SchemaExt {
// Required methods
fn get_type(&self) -> &Type;
fn is_type_defined(&self) -> bool;
}Expand description
Extension methods for Schema
Required Methods§
Sourcefn get_type(&self) -> &Type
fn get_type(&self) -> &Type
Returns the type of the schema Panics for oneOf, anyOf, allOf, or no type defined
Sourcefn is_type_defined(&self) -> bool
fn is_type_defined(&self) -> bool
Returns true if a specific type is defined, false on oneOf, anyOf, allOf, no type