1 2 3 4 5 6 7 8 9 10 11 12 13 14
#![no_std] // Reduces rustdoc JSON size by 70% #[derive(Debug)] #[non_exhaustive] pub struct Struct { pub v1_field: usize, pub v2_field: usize, } pub struct StructV2 { pub field: usize, #[allow(dead_code)] private_field: usize, }