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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.