use fluvio_protocol::Encoder; fn main() {} #[derive(Encoder)] struct PassTupleStruct(u16, String); #[derive(Encoder)] struct PassNamedStruct { number: u16, string: String, } #[repr(u16)] #[derive(Encoder)] #[fluvio(encode_discriminant)] enum PassUnitEnum { One = 1, Two = 2, Three = 3, } #[derive(Encoder)] enum PassTupleEnum { #[fluvio(tag = 0)] First(String), #[fluvio(tag = 1)] Second(u16), #[fluvio(tag = 2)] Third(Vec), } #[derive(Encoder)] enum PassNamedEnum { #[fluvio(tag = 0)] Alpha { name: String, number: i32 }, #[fluvio(tag = 1)] Beta { data: Vec }, }