[−][src]Enum brawl_api::model::clubs::ClubMemberRole
An enum representing a member's possible roles (See ClubMember
).
Variants (Non-exhaustive)
Trait Implementations
impl Clone for ClubMemberRole
[src]
fn clone(&self) -> ClubMemberRole
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ClubMemberRole
[src]
impl Debug for ClubMemberRole
[src]
impl Default for ClubMemberRole
[src]
fn default() -> ClubMemberRole
[src]
Defaults to ClubMemberRole::Member
- that is the initial role that any club member
adquires after joining (it may be promoted later, though).
Examples
use brawl_api::ClubMemberRole; assert_eq!(ClubMemberRole::default(), ClubMemberRole::Member);
impl<'de> Deserialize<'de> for ClubMemberRole
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for ClubMemberRole
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Writes this ClubMemberRole
variant's name.
Examples
use brawl_api::ClubMemberRole; assert_eq!( format!("{}", ClubMemberRole::Senior), String::from("Senior") );
impl Eq for ClubMemberRole
[src]
impl Hash for ClubMemberRole
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ClubMemberRole
[src]
fn cmp(&self, other: &ClubMemberRole) -> Ordering
[src]
Compares and determines which ClubMemberRole
is higher in the hierarchy:
Member < Senior < VicePresident < President
.
Examples
use brawl_api::ClubMemberRole; // vice-president has more power (is higher in the hierarchy) than a normal Member assert!(ClubMemberRole::Member < ClubMemberRole::VicePresident); assert!(ClubMemberRole::President > ClubMemberRole::VicePresident); assert!(ClubMemberRole::Senior > ClubMemberRole::Member); assert!(ClubMemberRole::Member >= ClubMemberRole::Member);
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ClubMemberRole> for ClubMemberRole
[src]
fn eq(&self, other: &ClubMemberRole) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ClubMemberRole> for ClubMemberRole
[src]
fn partial_cmp(&self, other: &ClubMemberRole) -> Option<Ordering>
[src]
Compares and determines which ClubMemberRole
is higher in the hierarchy:
Member < Senior < VicePresident < President
.
Examples
use brawl_api::ClubMemberRole; // vice-president has more power (is higher in the hierarchy) than a normal Member assert!(ClubMemberRole::Member < ClubMemberRole::VicePresident); assert!(ClubMemberRole::President > ClubMemberRole::VicePresident); assert!(ClubMemberRole::Senior > ClubMemberRole::Member); assert!(ClubMemberRole::Member >= ClubMemberRole::Member);
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for ClubMemberRole
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ClubMemberRole
[src]
impl StructuralPartialEq for ClubMemberRole
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClubMemberRole
impl Send for ClubMemberRole
impl Sync for ClubMemberRole
impl Unpin for ClubMemberRole
impl UnwindSafe for ClubMemberRole
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> FetchFrom<T> for T where
T: Clone + Send + Sync,
[src]
T: Clone + Send + Sync,
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]
&'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,
(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]
T: Sync + Send,
U: FetchFrom<T> + Sync + Send,
fn fetch_into(&Self, &Client) -> Result<U, Error>
[src]
fn a_fetch_into<'life0, 'life1, 'async_trait>(
&'life0 Self,
&'life1 Client
) -> Pin<Box<dyn Future<Output = Result<U, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
U: 'async_trait,
[src]
&'life0 Self,
&'life1 Client
) -> Pin<Box<dyn Future<Output = Result<U, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
U: 'async_trait,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,