derived-cms 0.6.1

Generate a CMS, complete with admin interface, headless API and database interface from Rust type definitions. Works in cunjunction with serde and ormlite and uses axum as a web server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt::Debug;

pub use derived_cms_derive::Column;
use i18n_embed::fluent::FluentLanguageLoader;
use maud::Markup;

/// A property of an entity that can be rendered as a column on the list page
pub trait Column: Debug {
    fn render(&self, i18n: &FluentLanguageLoader) -> Markup;
}

#[derive(Clone, Debug)]
pub struct ColumnInfo {
    pub name: &'static str,
    /// whether the column is hidden by default
    pub hidden: bool,
}