1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::full_box; full_box! { box (b"urn ", Urn, UrnBox, @save flags: u32) data { name: String, location: String } } impl Default for Urn { fn default() -> Self { Self { name: "".to_string(), location: "".to_string(), flags: 1 } } }