aboutsummaryrefslogtreecommitdiff
path: root/src/model/player.rs
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2024-09-17 19:24:26 -0700
committerGravatar Anshul Gupta <ansg191@anshulg.com> 2024-09-17 19:25:46 -0700
commit0c681816ac7e34da9520ffe7f5fa8fd89e385b7a (patch)
tree3299aeaa4056b82b66adab1d5594e7a8c2745e56 /src/model/player.rs
parentd9374e3ea7e34e878c661d092983827a2787d56e (diff)
downloadpandascore-0c681816ac7e34da9520ffe7f5fa8fd89e385b7a.tar.gz
pandascore-0c681816ac7e34da9520ffe7f5fa8fd89e385b7a.tar.zst
pandascore-0c681816ac7e34da9520ffe7f5fa8fd89e385b7a.zip
feat: add `current_team` field to `Player`
Diffstat (limited to '')
-rw-r--r--src/model/player.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/player.rs b/src/model/player.rs
index 1b94140..5cd126d 100644
--- a/src/model/player.rs
+++ b/src/model/player.rs
@@ -4,14 +4,14 @@ use compact_str::CompactString;
use serde::Deserialize;
use time::{Date, OffsetDateTime};
-use crate::model::VideoGame;
+use crate::model::{team::CompactTeam, VideoGame};
#[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize)]
pub struct Player {
#[serde(flatten)]
pub inner: CompactPlayer,
- // pub current_team: todo
+ pub current_team: Option<CompactTeam>,
#[serde(rename = "current_videogame")]
pub current_video_game: Option<VideoGame>,
}