pub struct Group {
pub color: Option<String>,
pub description: Option<String>,
pub has_modes: bool,
pub id: u32,
pub identifier: String,
pub is_probationary: bool,
pub modes: Option<Vec<GameMode>>,
pub name: String,
pub short_name: String,
}Expand description
Describes a Group membership of a UserExtended.
Fields§
§color: Option<String>§description: Option<String>§has_modes: boolWhether this group associates GameModes with users’ memberships.
id: u32§identifier: StringUnique string to identify the group.
is_probationary: boolWhether members of this group are considered probationary.
modes: Option<Vec<GameMode>>GameModes associated with this membership (None if has_modes is
unset).
name: String§short_name: StringShort name of the group for display.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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<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§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.