pub struct PlayerGame {
pub approach: ScoringMode,
pub hand_ids: Vec<String>,
pub rounds: Vec<RoundCell>,
pub log: Vec<ScoreEntry>,
}Expand description
One player’s whole-game scoring state. Plain data — safe to JSON round-trip.
Fields§
§approach: ScoringModeScoring approach: filters mode awards and sets the per-score cap.
hand_ids: Vec<String>Drawn-but-unscored secondaries, by card id. Scoring removes a card here.
rounds: Vec<RoundCell>Per-round VP, index 0 = round 1. Always length ROUNDS.
log: Vec<ScoreEntry>Log of scored secondaries, in scoring order — the editable record.
Trait Implementations§
Source§impl Clone for PlayerGame
impl Clone for PlayerGame
Source§fn clone(&self) -> PlayerGame
fn clone(&self) -> PlayerGame
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 PlayerGame
impl Debug for PlayerGame
Source§impl<'de> Deserialize<'de> for PlayerGame
impl<'de> Deserialize<'de> for PlayerGame
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 PlayerGame
impl PartialEq for PlayerGame
Source§fn eq(&self, other: &PlayerGame) -> bool
fn eq(&self, other: &PlayerGame) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlayerGame
impl Serialize for PlayerGame
impl StructuralPartialEq for PlayerGame
Auto Trait Implementations§
impl Freeze for PlayerGame
impl RefUnwindSafe for PlayerGame
impl Send for PlayerGame
impl Sync for PlayerGame
impl Unpin for PlayerGame
impl UnsafeUnpin for PlayerGame
impl UnwindSafe for PlayerGame
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