pub fn deserialize_optional_polymarket_game_id<'de, D>(
deserializer: D,
) -> Result<Option<u64>, D::Error>where
D: Deserializer<'de>,Expand description
Deserializes a Polymarket game ID. The Gamma API returns the field in two
shapes (string on GammaMarket, integer on GammaEvent) and uses both
null and -1 (or "-1") as the “no game” sentinel for non-sport
markets. Either sentinel is mapped to None; valid values must be
non-negative.