Derive macro for gmtpl_value
[dependencies]
gtmpl_derive = "0.5"
use gtmpl_derive::Gtmpl;
use gtmpl_value::Value;
#[derive(Gtmpl)]
struct Foo {
bar: u8
}
fn main() {
let v: Value = (Foo { bar: 23 }).into();
}
Derive macro for gmtpl_value
[dependencies]
gtmpl_derive = "0.5"
use gtmpl_derive::Gtmpl;
use gtmpl_value::Value;
#[derive(Gtmpl)]
struct Foo {
bar: u8
}
fn main() {
let v: Value = (Foo { bar: 23 }).into();
}