pub struct PlayerBrawlerStat {
pub star_powers: Vec<StarPower>,
pub id: usize,
pub rank: u16,
pub trophies: usize,
pub highest_trophies: usize,
pub power: u8,
pub name: String,
}Expand description
A struct containing information about a player’s brawler (see Player.brawlers).
Fields§
§star_powers: Vec<StarPower>A vector containing the brawler’s star powers (represented by StarPower),
if any (otherwise empty vector).
id: usizeThe brawler’s id (an arbitrary number).
rank: u16The brawler’s rank.
trophies: usizeThe brawler’s trophies.
highest_trophies: usizeThe brawler’s highest trophies amount.
power: u8The brawler’s power (1-10).
name: StringThe brawler’s name.
Trait Implementations§
Source§impl Clone for PlayerBrawlerStat
impl Clone for PlayerBrawlerStat
Source§fn clone(&self) -> PlayerBrawlerStat
fn clone(&self) -> PlayerBrawlerStat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlayerBrawlerStat
impl Debug for PlayerBrawlerStat
Source§impl Default for PlayerBrawlerStat
impl Default for PlayerBrawlerStat
Source§fn default() -> PlayerBrawlerStat
fn default() -> PlayerBrawlerStat
Initializes a new BrawlerStat instance, with default values.
Source§impl<'de> Deserialize<'de> for PlayerBrawlerStat
impl<'de> Deserialize<'de> for PlayerBrawlerStat
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>,
Source§impl FetchFrom<PlayerBrawlerStat> for Brawler
impl FetchFrom<PlayerBrawlerStat> for Brawler
Source§fn fetch_from(client: &Client, p_brawler: &PlayerBrawlerStat) -> Result<Brawler>
fn fetch_from(client: &Client, p_brawler: &PlayerBrawlerStat) -> Result<Brawler>
(Sync) Attempts to fetch a Brawler from an existing PlayerBrawlerStat instance.
Source§fn a_fetch_from<'life0, 'life1, 'async_trait>(
client: &'life0 Client,
p_brawler: &'life1 PlayerBrawlerStat,
) -> Pin<Box<dyn Future<Output = Result<Brawler>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn a_fetch_from<'life0, 'life1, 'async_trait>(
client: &'life0 Client,
p_brawler: &'life1 PlayerBrawlerStat,
) -> Pin<Box<dyn Future<Output = Result<Brawler>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
(Async) Attempts to fetch a Brawler from an existing PlayerBrawlerStat instance.
Source§impl Hash for PlayerBrawlerStat
impl Hash for PlayerBrawlerStat
Source§impl PartialEq for PlayerBrawlerStat
impl PartialEq for PlayerBrawlerStat
Source§impl Serialize for PlayerBrawlerStat
impl Serialize for PlayerBrawlerStat
impl Eq for PlayerBrawlerStat
impl StructuralPartialEq for PlayerBrawlerStat
Auto Trait Implementations§
impl Freeze for PlayerBrawlerStat
impl RefUnwindSafe for PlayerBrawlerStat
impl Send for PlayerBrawlerStat
impl Sync for PlayerBrawlerStat
impl Unpin for PlayerBrawlerStat
impl UnwindSafe for PlayerBrawlerStat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.Source§impl<T> FetchFrom<T> for T
impl<T> FetchFrom<T> for T
Source§fn fetch_from(_: &Client, t: &T) -> Result<T, Error>
fn fetch_from(_: &Client, t: &T) -> Result<T, Error>
(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.
Source§fn a_fetch_from<'life0, 'life1, 'async_trait>(
_: &'life0 Client,
t: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn a_fetch_from<'life0, 'life1, 'async_trait>(
_: &'life0 Client,
t: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
(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.