Trait poem_openapi::types::Type[][src]

pub trait Type: Send + Sync {
    type ValueType;

    const IS_REQUIRED: bool;

    fn name() -> Cow<'static, str>;
fn schema_ref() -> MetaSchemaRef;
fn as_value(&self) -> Option<&Self::ValueType>; fn register(registry: &mut Registry) { ... } }
Expand description

Represents a OpenAPI type.

Associated Types

The value type of this type.

Associated Constants

If it is true, it means that this value is required.

Required methods

Returns the name of this type

Get schema reference of this type.

Get the value.

Provided methods

Register this type to types registry.

Implementations on Foreign Types

Implementors