utoipa::openapi::schema

Function empty

source
pub fn empty() -> Schema
Expand description

Create an empty Schema that serializes to null.

Can be used in places where an item can be serialized as null. This is used with unit type enum variants and tuple unit types.