Closed killercup closed 5 years ago
Offer a simple derive that used some default style and allows to do
#[derive(Serialize, RenderOutput)] struct Foo { name: String, code: i32} out.print(Foo { name: "hallo".into(), code: 42 })?;
The goal is to let people write even less code. This is an experiment, though, and only in addition to "manually" implemementing using the macros.
output_derive
RenderOutput
impl Render for $type
render_json!();
Works, and the fuzzy requirement of "formatting attributes" should be tracked in another issue.
Offer a simple derive that used some default style and allows to do
The goal is to let people write even less code. This is an experiment, though, and only in addition to "manually" implemementing using the macros.
output_derive
RenderOutput
impl Render for $type
render_json!();