[][src]Trait openapi_utils::SchemaExt

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

Extension methods for Schema

Required methods

fn get_type(&self) -> &Type

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

fn is_type_defined(&self) -> bool

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

Loading content...

Implementations on Foreign Types

impl SchemaExt for Schema[src]

Loading content...

Implementors

Loading content...