Trait burn::module::ModuleDisplay
pub trait ModuleDisplay: ModuleDisplayDefault {
// Provided methods
fn format(&self, passed_settings: DisplaySettings) -> String { ... }
fn custom_settings(&self) -> Option<DisplaySettings> { ... }
fn custom_content(&self, _content: Content) -> Option<Content> { ... }
}
Expand description
Trait to implement custom display settings for a module.
In order to implement custom display settings for a module,
- Add #[module(custom_display)] attribute to the module struct after #[derive(Module)]
- Implement ModuleDisplay trait for the module