pub fn serialize<S>( sig: &Option<Signature>, serializer: S ) -> Result<S::Ok, S::Error>where S: Serializer,