Crates.io | gtmpl_derive |
lib.rs | gtmpl_derive |
version | 0.5.0 |
source | src |
created_at | 2017-11-14 07:50:29.380542 |
updated_at | 2021-06-07 07:11:46.730925 |
description | Derive for gtmpl_value |
homepage | |
repository | https://github.com/fiji-flo/gtmpl_derive |
max_upload_size | |
id | 39289 |
size | 8,397 |
Derive macro for gmtpl_value
[dependencies]
gtmpl_derive = "0.4"
use gtmpl_derive::Gtmpl;
use gtmpl_value::Value;
#[derive(Gtmpl)]
struct Foo {
bar: u8
}
fn main() {
let v: Value = (Foo { bar: 23 }).into();
}