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§
Sourcefn get_type_path(&self) -> &'static str
fn get_type_path(&self) -> &'static str
Bevy Reflect type path
Provided Methods§
Sourcefn map_json_type(&self) -> SchemaType
fn map_json_type(&self) -> SchemaType
JSON Schema type keyword from Bevy reflect type path into