1 2 3 4 5 6 7 8 9 10 11
#[cfg(not(feature = "std"))] extern crate alloc; use bebytes::BeBytes; #[derive(BeBytes, Debug, PartialEq)] pub struct Optional { pub optional_number: Option<i32>, } fn main() {}