pub struct League {
pub id: LeagueKind,
pub name: String,
pub icon_urls: LeagueIconUrls,
}
Fields§
§id: LeagueKind
§name: String
§icon_urls: LeagueIconUrls
Implementations§
source§impl League
impl League
I need to think of a better way to do this, enum variants with struct types seem stupid as they’re all the same type.
pub fn Unranked() -> Self
pub fn BronzeLeagueIII() -> Self
pub fn BronzeLeagueII() -> Self
pub fn BronzeLeagueI() -> Self
pub fn SilverLeagueIII() -> Self
pub fn SilverLeagueII() -> Self
pub fn SilverLeagueI() -> Self
pub fn GoldLeagueIII() -> Self
pub fn GoldLeagueII() -> Self
pub fn GoldLeagueI() -> Self
pub fn CrystalLeagueIII() -> Self
pub fn CrystalLeagueII() -> Self
pub fn CrystalLeagueI() -> Self
pub fn MasterLeagueIII() -> Self
pub fn MasterLeagueII() -> Self
pub fn MasterLeagueI() -> Self
pub fn ChampionLeagueIII() -> Self
pub fn ChampionLeagueII() -> Self
pub fn ChampionLeagueI() -> Self
pub fn TitanLeagueIII() -> Self
pub fn TitanLeagueII() -> Self
pub fn TitanLeagueI() -> Self
pub fn LegendLeague() -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for League
impl<'de> Deserialize<'de> for League
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for League
impl Send for League
impl Sync for League
impl Unpin for League
impl UnwindSafe for League
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more