Trait mango_orm::forms::ToForm[][src]

pub trait ToForm {
    fn key() -> String;
fn form_name() -> String;
fn fields_name() -> Result<Vec<String>, Box<dyn Error>>;
fn widgets() -> Result<HashMap<String, Widget>, Box<dyn Error>>;
fn self_to_json(&self) -> Result<Value, Box<dyn Error>>; }

Required methods

Get form key. (To access data in the cache)

Get form name

Get fields name list.

Get map of widgets for Form fields. Hint: Vec<field name, Widget>

Serialize Form to json-line.

Implementors