Trait ToSchema

Source
pub trait ToSchema {
    // Required method
    fn to_schema(&self) -> String;
}
Expand description

A trait used to a create a DDL string or JSON string

Primarily used for StructType and Strings

Required Methods§

Source

fn to_schema(&self) -> String

Implementations on Foreign Types§

Source§

impl ToSchema for &str

Source§

impl ToSchema for String

Implementors§