r6stats_client 0.2.3

Client for the r6stats API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// The platforms Rainbow 6 Siege can be played on.
#[derive(Copy, Clone, Debug)]
pub enum Platform {
    Pc,
    Xbox,
    Playstation,
}

impl Platform {
    /// Returns the string representation for the api.
    pub fn as_str(self) -> &'static str {
        match self {
            Self::Pc => "pc",
            Self::Xbox => "xbox",
            Self::Playstation => "ps4",
        }
    }
}