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

pub trait Type: Sized + Send + Sync {
    const DATA_TYPE: DataType;
    const IS_REQUIRED: bool;

    fn parse(value: Option<Value>) -> ParseResult<Self>;
fn parse_from_str(value: Option<&str>) -> ParseResult<Self>;
fn to_value(&self) -> Value; fn register(registry: &mut Registry) { ... } }
Expand description

Represents a OpenAPI type.

Associated Constants

Data type of this value.

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

Required methods

Parse from serde_json::Value.

Parse from string.

Convert this value to serde_json::Value.

Provided methods

Register this type to types registry.

Implementations on Foreign Types

Implementors