rust enum inside struct code example Example: rust enum anonymous struct enum Foo { A { val: i64 }, B, }