Skip to main content

server/domain/phase/state/scoring/
scoring_crib.rs

1use serde::{Deserialize, Serialize};
2
3use super::common::Scoring;
4
5/// Marker type used to distinguish crib scoring from other scoring contexts.
6#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7pub struct ScoringCribType;
8
9/// A strongly typed alias for scoring operations related to the crib.
10///
11/// This type ensures that crib scoring cannot be confused with hand
12/// scoring or other scoring phases.
13pub type ScoringCrib = Scoring<ScoringCribType>;