use jce::JceStruct; #[derive(JceStruct, Debug)] struct Optional { // tag = 0 a: Option, // tag = 1 b: Option>, } #[test] fn option() { let op = Optional::decode([12].as_ref()).unwrap(); assert!(op.a.is_none()); }