pub fn serialize<S>( data: &Option<Vec<u8>>, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer,