server/domain/plays/go_status.rs
1use serde::{Deserialize, Serialize};
2use strum::AsRefStr;
3
4/// Represents the status of a "go" during pegging.
5///
6/// Tracks whether a go has been called or if play has continued after a go.
7#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize, AsRefStr)]
8pub enum GoStatus {
9 #[doc(hidden)]
10 #[default]
11 NotCalled,
12
13 #[doc(hidden)]
14 Called,
15
16 #[doc(hidden)]
17 PlayContinued,
18}