zero4rs 2.0.0

zero4rs is a powerful, pragmatic, and extremely fast web framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use lazy_static::lazy_static;

// https://handlebarsjs.com/
#[rustfmt::skip]
lazy_static! {
    pub static ref _TEMPLATE: &'static str = r#"
#[rustfmt::skip]
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct STRUCT_NAME_HERE {
    {{#each fields}}
    #[serde(skip_serializing_if = "Option::is_none")]
    pub {{this.name}}: {{{this.rust_type}}},
    {{/each}}
}
"#;
}