diff --git a/src/model/score.rs b/src/model/score.rs index aaa9334..8e953c7 100644 --- a/src/model/score.rs +++ b/src/model/score.rs @@ -8,7 +8,10 @@ use super::{ use crate::{error::OsuError, request::GetUser, Osu}; use rosu_mods::{serde::GameModsSeed, GameModIntermode, GameModsIntermode}; -use serde::{de::DeserializeSeed, Deserialize, Deserializer}; +use serde::{ + de::{DeserializeSeed, IgnoredAny}, + Deserialize, Deserializer, +}; use serde_json::value::RawValue; use time::OffsetDateTime; @@ -128,6 +131,8 @@ impl<'de> Deserialize<'de> for Score { max_combo: u32, passed: bool, pp: Option, + #[serde(rename = "mode")] + _mode: Option, // only available in legacy scores #[serde(rename = "ruleset_id", alias = "mode_int")] mode: GameMode, #[serde(default, with = "serde_util::option_datetime")]