pub struct PlayerResult {
pub username: String,
pub rating: i32,
pub result: Result,
pub id: String,
}
Fields§
§username: String
§rating: i32
The player’s rating at the start of the game
result: Result
Player result: * win
- Win * checkmated
- Checkmated * agreed
- Draw agreed * repetition
- Draw by repetition * timeout
- Timeout * resigned
- Resigned * stalemate
- Stalemate * lose
- Lose * insufficient
- Insufficient material * 50
- Draw by 50-move rule * abandoned
- abandoned * kingofthehill
- Opponent king reached the hill * threecheck
- Checked for the 3rd time * timevsinsufficient
- Draw by timeout vs insufficient material * bughousepartnerlose
- Bughouse partner lost
id: String
URL of this player’s profile
Implementations§
Source§impl PlayerResult
impl PlayerResult
Trait Implementations§
Source§impl Clone for PlayerResult
impl Clone for PlayerResult
Source§fn clone(&self) -> PlayerResult
fn clone(&self) -> PlayerResult
Returns a duplicate of the value. Read more
1.0.0 · 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 PlayerResult
impl Debug for PlayerResult
Source§impl<'de> Deserialize<'de> for PlayerResult
impl<'de> Deserialize<'de> for PlayerResult
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 for PlayerResult
impl PartialEq for PlayerResult
Source§impl Serialize for PlayerResult
impl Serialize for PlayerResult
impl StructuralPartialEq for PlayerResult
Auto Trait Implementations§
impl Freeze for PlayerResult
impl RefUnwindSafe for PlayerResult
impl Send for PlayerResult
impl Sync for PlayerResult
impl Unpin for PlayerResult
impl UnwindSafe for PlayerResult
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