Enum riven::consts::RegionalRoute
source · #[non_exhaustive]#[repr(u8)]pub enum RegionalRoute {
AMERICAS = 1,
ASIA = 2,
EUROPE = 3,
SEA = 4,
APAC = 10,
ESPORTS = 11,
}
Expand description
Regional routes, used in tournament services, Legends of Runeterra (LoR), and other some endpoints.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AMERICAS = 1
North and South America.
1
(riotapi-schema ID/repr)
ASIA = 2
Asia, used for LoL matches (match-v5
) and TFT matches (tft-match-v1
).
2
(riotapi-schema ID/repr)
EUROPE = 3
Europe.
3
(riotapi-schema ID/repr)
SEA = 4
South East Asia, used for LoR, LoL matches (match-v5
), and TFT matches (tft-match-v1
).
4
(riotapi-schema ID/repr)
APAC = 10
👎Deprecated
Asia-Pacific, deprecated, for some old matches in lor-match-v1
.
10
(riotapi-schema ID/repr)
ESPORTS = 11
Special esports platform for account-v1
. Do not confuse with the esports
Valorant platform route.
11
(riotapi-schema ID/repr)
Trait Implementations§
source§impl Clone for RegionalRoute
impl Clone for RegionalRoute
source§fn clone(&self) -> RegionalRoute
fn clone(&self) -> RegionalRoute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RegionalRoute
impl Debug for RegionalRoute
source§impl Display for RegionalRoute
impl Display for RegionalRoute
source§impl<'_derivative_strum> From<&'_derivative_strum RegionalRoute> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum RegionalRoute> for &'static str
source§fn from(x: &'_derivative_strum RegionalRoute) -> &'static str
fn from(x: &'_derivative_strum RegionalRoute) -> &'static str
Converts to this type from the input type.
source§impl From<RegionalRoute> for &'static str
impl From<RegionalRoute> for &'static str
source§fn from(x: RegionalRoute) -> &'static str
fn from(x: RegionalRoute) -> &'static str
Converts to this type from the input type.
source§impl From<RegionalRoute> for u8
impl From<RegionalRoute> for u8
source§fn from(enum_value: RegionalRoute) -> Self
fn from(enum_value: RegionalRoute) -> Self
Converts to this type from the input type.
source§impl FromStr for RegionalRoute
impl FromStr for RegionalRoute
source§impl Hash for RegionalRoute
impl Hash for RegionalRoute
source§impl IntoEnumIterator for RegionalRoute
impl IntoEnumIterator for RegionalRoute
type Iterator = RegionalRouteIter
fn iter() -> RegionalRouteIter ⓘ
source§impl Ord for RegionalRoute
impl Ord for RegionalRoute
source§fn cmp(&self, other: &RegionalRoute) -> Ordering
fn cmp(&self, other: &RegionalRoute) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RegionalRoute
impl PartialEq for RegionalRoute
source§fn eq(&self, other: &RegionalRoute) -> bool
fn eq(&self, other: &RegionalRoute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RegionalRoute
impl PartialOrd for RegionalRoute
source§fn partial_cmp(&self, other: &RegionalRoute) -> Option<Ordering>
fn partial_cmp(&self, other: &RegionalRoute) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for RegionalRoute
impl TryFrom<u8> for RegionalRoute
§type Error = TryFromPrimitiveError<RegionalRoute>
type Error = TryFromPrimitiveError<RegionalRoute>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for RegionalRoute
impl TryFromPrimitive for RegionalRoute
impl Copy for RegionalRoute
impl Eq for RegionalRoute
impl StructuralPartialEq for RegionalRoute
Auto Trait Implementations§
impl Freeze for RegionalRoute
impl RefUnwindSafe for RegionalRoute
impl Send for RegionalRoute
impl Sync for RegionalRoute
impl Unpin for RegionalRoute
impl UnwindSafe for RegionalRoute
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.