pub trait Method<E, D>: Encoder<E> + Decoder<D>where E: Context, D: Context,{ // Required method fn method_name(&self) -> String; }
Combination of Encoder and Decoder traits - each method should be able to encode and decode.