1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::api::{categories::CategoryId, games::GameId};

use super::Leaderboard;

impl<'a> From<Leaderboard<'a>> for CategoryId<'a> {
    fn from(value: Leaderboard<'a>) -> Self {
        value.category
    }
}

impl<'a> From<Leaderboard<'a>> for GameId<'a> {
    fn from(value: Leaderboard<'a>) -> Self {
        value.game
    }
}