Skip to main content

AppConfig

Trait AppConfig 

Source
pub trait AppConfig {
    // Required methods
    fn name() -> &'static str;
    fn schema() -> SchemaSet;
}
Expand description

Application-level model registration, similar to a Django app config.

Required Methods§

Source

fn name() -> &'static str

Stable application label used in diagnostics and registration.

Source

fn schema() -> SchemaSet

Returns models owned by this application in dependency order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§