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