1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Nested field type without JsonView must fail at compile time. use jshift::JsonView; struct NotAView { x: u64, } #[derive(JsonView)] struct Parent { #[json(path = "child")] child: NotAView, } fn main() {}