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