Type Alias salvo_oapi::TupleUnit

source ·
pub type TupleUnit = ();
Expand description

Represents nullable type. This can be used anywhere where “nothing” needs to be evaluated. This will serialize to null in JSON and schema::empty is used to create the schema::Schema for the type.

Trait Implementations§

source§

impl ToSchema for TupleUnit

source§

fn to_schema(_components: &mut Components) -> RefOr<Schema>

Returns a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.