[][src]Crate convey_derive

Custom derives for output.rs

Examples

extern crate convey;
#[macro_use] extern crate convey_derive;
#[macro_use] extern crate serde_derive;

#[derive(Serialize, RenderOutput)]
struct Message {
    code: i32,
    message: String,
}

let out = convey::new().add_target(test_target.target())?;
out.print(&Message {
    code: 42,
    message: String::from("Derive works"),
})?;

Derive Macros

RenderOutput