pub struct MatchOutcome {
pub home_goals: u8,
pub away_goals: u8,
pub stream: Vec<MatchEvent>,
}Expand description
The result of a simulated match: the score that folds into GameState
(via Event::MatchPlayed) plus the minute-by-minute trace. The trace
rides alongside the fold, never inside it (MATCH_MODEL.md §7) — it is a
Trace, not a fold input, and callers are free to discard it. Nothing here
is persisted by commands::advance_matchday; only the score is.
Fields§
§home_goals: u8§away_goals: u8§stream: Vec<MatchEvent>Trait Implementations§
Source§impl Clone for MatchOutcome
impl Clone for MatchOutcome
Source§fn clone(&self) -> MatchOutcome
fn clone(&self) -> MatchOutcome
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 MatchOutcome
impl Debug for MatchOutcome
Source§impl PartialEq for MatchOutcome
impl PartialEq for MatchOutcome
impl StructuralPartialEq for MatchOutcome
Auto Trait Implementations§
impl Freeze for MatchOutcome
impl RefUnwindSafe for MatchOutcome
impl Send for MatchOutcome
impl Sync for MatchOutcome
impl Unpin for MatchOutcome
impl UnsafeUnpin for MatchOutcome
impl UnwindSafe for MatchOutcome
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