Struct lib_hearts::PlayerState
source · pub struct PlayerState {
pub player_id: Uuid,
pub score: usize,
}
Fields§
§player_id: Uuid
§score: usize
Trait Implementations§
source§impl Clone for PlayerState
impl Clone for PlayerState
source§fn clone(&self) -> PlayerState
fn clone(&self) -> PlayerState
Returns a copy 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 PlayerState
impl Debug for PlayerState
source§impl<'de> Deserialize<'de> for PlayerState
impl<'de> Deserialize<'de> for PlayerState
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<PlayerState> for PlayerState
impl PartialEq<PlayerState> for PlayerState
source§fn eq(&self, other: &PlayerState) -> bool
fn eq(&self, other: &PlayerState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PlayerState
impl Serialize for PlayerState
impl Copy for PlayerState
impl Eq for PlayerState
impl StructuralEq for PlayerState
impl StructuralPartialEq for PlayerState
Auto Trait Implementations§
impl RefUnwindSafe for PlayerState
impl Send for PlayerState
impl Sync for PlayerState
impl Unpin for PlayerState
impl UnwindSafe for PlayerState
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