1 2 3 4 5 6 7 8 9 10 11 12 13 14
use daft::Diffable; #[derive(Diffable)] #[daft(ignore, leaf, leaf)] struct MyStruct { a: i32, b: String, } fn main() { // MyStruct should still exist, even though the Diffable impl couldn't be // generated. let _ = MyStruct { a: 0, b: "foo".to_string() }; }