[][src]Enum brawl_api::constants::Brawlers

#[non_exhaustive]
pub enum Brawlers {
    Shelly,
    Colt,
    Bull,
    Brock,
    Rico,
    Spike,
    Barley,
    Jessie,
    Nita,
    Dynamike,
    ElPrimo,
    Mortis,
    Crow,
    Poco,
    Bo,
    Piper,
    Pam,
    Tara,
    Darryl,
    Penny,
    Frank,
    Gene,
    Tick,
    Leon,
    Rosa,
    Carl,
    Bibi,
    EightBit,
    Sandy,
    Bea,
    Emz,
    MrP,
    Max,
}

This eunm is an effort to aid the programmer's usage of brawler-related endpoints, by mapping human-readable brawler names to their respective IDs. (Use by casting to int; e.g. x as usize)

This is by no means a final enum and must be updated on every new Brawler release.

If a permanently up-to-date list is needed, one can fetch the /brawlers/ endpoint using the available models. If still using this enum, though, rest assured that we will do our best to keep it updated - if it is not, why not contribute with a PR? ;)

Variants (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.
Shelly
Colt
Bull
Brock
Rico
Spike
Barley
Jessie
Nita
Dynamike
ElPrimo
Mortis
Crow
Poco
Bo
Piper
Pam
Tara
Darryl
Penny
Frank
Gene
Tick
Leon
Rosa
Carl
Bibi
EightBit
Sandy
Bea
Emz
MrP
Max

Trait Implementations

impl Clone for Brawlers[src]

impl Copy for Brawlers[src]

impl Debug for Brawlers[src]

impl Eq for Brawlers[src]

impl FetchFrom<Brawlers> for Brawler[src]

fn fetch_from(client: &Client, b_brawler: &Brawlers) -> Result<Brawler>[src]

(Sync) Attempts to fetch a Brawler from an existing Brawlers variant.

fn a_fetch_from<'life0, 'life1, 'async_trait>(
    client: &'life0 Client,
    b_brawler: &'life1 Brawlers
) -> Pin<Box<dyn Future<Output = Result<Brawler>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait, 
[src]

(Async) Attempts to fetch a Brawler from an existing Brawlers variant.

impl Hash for Brawlers[src]

impl PartialEq<Brawlers> for Brawlers[src]

impl StructuralEq for Brawlers[src]

impl StructuralPartialEq for Brawlers[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> FetchFrom<T> for T where
    T: Clone + Send + Sync
[src]

fn fetch_from(&Client, &T) -> Result<T, Error>[src]

(Sync) Returns a copy of the current instance when attempting to fetch from itself. In order to re-fetch, see Refetchable.

Errors

Never errors; is only a Result in order to match the trait signature.

fn a_fetch_from<'life0, 'life1, 'async_trait>(
    &'life0 Client,
    &'life1 T
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + 'async_trait + Send>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    T: 'async_trait, 
[src]

(Async) Returns a copy of the current instance when attempting to fetch from itself. In order to re-fetch, see Refetchable.

Errors

Never errors; is only a Result in order to match the trait signature.

impl<T, U> FetchInto<U> for T where
    T: Sync + Send,
    U: FetchFrom<T> + Sync + Send
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.