pub fn serialize<S: Serializer>( method: &Method, ser: S, ) -> Result<S::Ok, S::Error>
Implementation detail. Use derive annotations instead.