Skip to main content

Pretty

Trait Pretty 

Source
pub trait Pretty: Serialize {
    const TEMPLATE: &'static str;
}
Expand description

A serializable model whose pretty view is a Jinja template.

Prepare the data. The template owns {% if %}, loops, and alignment.

Required Associated Constants§

Source

const TEMPLATE: &'static str

include_str! of a .jinja file next to the binary crate.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§