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 User
.
Fields§
§color: Option<String>
§description: Option<String>
§has_modes: bool
Whether this group associates GameMode
s with users’ memberships.
id: u32
§identifier: String
Unique string to identify the group.
is_probationary: bool
Whether members of this group are considered probationary.
modes: Option<Vec<GameMode>>
GameMode
s associated with this membership (None
if has_modes is unset).
name: String
§short_name: String
Short 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
source§impl PartialEq<Group> for Group
impl PartialEq<Group> for Group
impl Eq for Group
impl StructuralEq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.