Struct challonge::matches::MatchUpdate [−][src]
pub struct MatchUpdate { pub scores_csv: MatchScores, pub winner_id: Option<ParticipantId>, pub player1_votes: Option<u64>, pub player2_votes: Option<u64>, }
Expand description
NOTE: If you’re updating winner_id, scores_csv must also be provided. You may, however, update score_csv without providing winner_id for live score updates.
Fields
scores_csv: MatchScores
Comma separated set/game scores with player 1 score first (e.g. “1-3,3-0,3-2”)
winner_id: Option<ParticipantId>
The participant ID of the winner or “tie” if applicable (Round Robin and Swiss). NOTE: If you change the outcome of a completed match, all matches in the bracket that branch from the updated match will be reset.
player1_votes: Option<u64>
Overwrites the number of votes for player 1
player2_votes: Option<u64>
Overwrites the number of votes for player 2
Implementations
Creates new MatchUpdate
structure with default values.
A builder method for $field with $field_type
type.
A builder method for $field with Option
type.
A builder method for $field with Option
type.
A builder method for $field with Option
type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatchUpdate
impl Send for MatchUpdate
impl Sync for MatchUpdate
impl Unpin for MatchUpdate
impl UnwindSafe for MatchUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more