pub struct PlayerClub {
pub tag: String,
pub name: String,
}Expand description
A struct representing a club obtained from Player.club.
Note that it does not contain all of a club’s information.
For that, use Club::fetch_from (fetches the full Club).
Fields§
§tag: StringThe club’s tag.
name: StringThe club’s name
Trait Implementations§
Source§impl Clone for PlayerClub
impl Clone for PlayerClub
Source§fn clone(&self) -> PlayerClub
fn clone(&self) -> PlayerClub
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlayerClub
impl Debug for PlayerClub
Source§impl Default for PlayerClub
impl Default for PlayerClub
Source§fn default() -> PlayerClub
fn default() -> PlayerClub
Returns an instance of PlayerClub with initial values.
§Examples
use brawl_api::PlayerClub;
assert_eq!(
PlayerClub::default(),
PlayerClub {
tag: String::from(""),
name: String::from(""),
}
);Source§impl<'de> Deserialize<'de> for PlayerClub
impl<'de> Deserialize<'de> for PlayerClub
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>,
impl Eq for PlayerClub
Source§impl FetchFrom<PlayerClub> for Club
impl FetchFrom<PlayerClub> for Club
Source§fn fetch_from(client: &Client, p_club: &PlayerClub) -> Result<Club>
fn fetch_from(client: &Client, p_club: &PlayerClub) -> Result<Club>
(Sync) Fetches a Club using data from a PlayerClub object.
Source§fn a_fetch_from<'life0, 'life1, 'async_trait>(
client: &'life0 Client,
p_club: &'life1 PlayerClub,
) -> Pin<Box<dyn Future<Output = Result<Club>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn a_fetch_from<'life0, 'life1, 'async_trait>(
client: &'life0 Client,
p_club: &'life1 PlayerClub,
) -> Pin<Box<dyn Future<Output = Result<Club>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
(Async) Fetches a Club using data from a PlayerClub object.
Source§impl Hash for PlayerClub
impl Hash for PlayerClub
Source§impl PartialEq for PlayerClub
impl PartialEq for PlayerClub
Source§fn eq(&self, other: &PlayerClub) -> bool
fn eq(&self, other: &PlayerClub) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PlayerClub
impl Serialize for PlayerClub
impl StructuralPartialEq for PlayerClub
Auto Trait Implementations§
impl Freeze for PlayerClub
impl RefUnwindSafe for PlayerClub
impl Send for PlayerClub
impl Sync for PlayerClub
impl Unpin for PlayerClub
impl UnsafeUnpin for PlayerClub
impl UnwindSafe for PlayerClub
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.