Files
darkfi/example/derive_macro_example.rs
2022-10-16 02:50:59 +03:00

13 lines
205 B
Rust

use darkfi::serial::SerialEncodable;
#[derive(Debug, SerialEncodable)]
struct Test {
one: u64,
two: u64,
}
fn main() {
let test = Test { one: 1, two: 2 };
println!("Test: {:?}", test);
}