pub struct LichessLightUser {
pub id: String,
pub name: String,
pub flair: Option<String>,
pub title: Option<LichessTitle>,
pub patron: Option<bool>,
pub patron_color: Option<u8>,
}Expand description
A minimal user reference: just enough to identify and display a player.
Fields§
§id: StringThe canonical (lowercased) user id.
name: StringThe display name.
flair: Option<String>The player’s flair, if set.
title: Option<LichessTitle>The player’s title, if any.
patron: Option<bool>Deprecated patron flag; prefer patron_color.
patron_color: Option<u8>The chosen Patron wing color; its presence marks an active patron.
Trait Implementations§
Source§impl Clone for LichessLightUser
impl Clone for LichessLightUser
Source§fn clone(&self) -> LichessLightUser
fn clone(&self) -> LichessLightUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LichessLightUser
impl Debug for LichessLightUser
Source§impl<'de> Deserialize<'de> for LichessLightUser
impl<'de> Deserialize<'de> for LichessLightUser
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 LichessLightUser
Source§impl PartialEq for LichessLightUser
impl PartialEq for LichessLightUser
Source§impl Serialize for LichessLightUser
impl Serialize for LichessLightUser
impl StructuralPartialEq for LichessLightUser
Auto Trait Implementations§
impl Freeze for LichessLightUser
impl RefUnwindSafe for LichessLightUser
impl Send for LichessLightUser
impl Sync for LichessLightUser
impl Unpin for LichessLightUser
impl UnsafeUnpin for LichessLightUser
impl UnwindSafe for LichessLightUser
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,
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§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.