Trait openapi_utils::SchemaExt[][src]

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

Extension methods for Schema

Required methods

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

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

Implementations on Foreign Types

Implementors