pub trait ToSchema {
const REQUIRED: bool = true;
// Required methods
fn title() -> Cow<'static, str>;
fn schema(
schemas: &mut BTreeMap<String, Schema>,
schemas_in_progress: &mut Vec<String>,
) -> Schema;
// Provided methods
fn key() -> String { ... }
fn schema_ref(
schemas: &mut BTreeMap<String, Schema>,
schemas_in_progress: &mut Vec<String>,
) -> ReferenceOr<Schema> { ... }
fn schema_ref_box(
schemas: &mut BTreeMap<String, Schema>,
schemas_in_progress: &mut Vec<String>,
) -> ReferenceOr<Box<Schema>> { ... }
}Provided Associated Constants§
Required Methods§
fn title() -> Cow<'static, str>
fn schema( schemas: &mut BTreeMap<String, Schema>, schemas_in_progress: &mut Vec<String>, ) -> Schema
Provided Methods§
fn key() -> String
fn schema_ref( schemas: &mut BTreeMap<String, Schema>, schemas_in_progress: &mut Vec<String>, ) -> ReferenceOr<Schema>
fn schema_ref_box( schemas: &mut BTreeMap<String, Schema>, schemas_in_progress: &mut Vec<String>, ) -> ReferenceOr<Box<Schema>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.