Trait SchemaJsonType

Source
pub trait SchemaJsonType {
    // Required method
    fn get_type_path(&self) -> &'static str;

    // Provided method
    fn map_json_type(&self) -> SchemaType { ... }
}
Expand description

Helper trait for mapping bevy type path into json schema type

Required Methods§

Source

fn get_type_path(&self) -> &'static str

Bevy Reflect type path

Provided Methods§

Source

fn map_json_type(&self) -> SchemaType

JSON Schema type keyword from Bevy reflect type path into

Implementors§