pub trait MySerialize { // Required method fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: MySerializer; }