pub fn string_as_objectid_optional<S>( data: &Option<String>, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer,