Struct challonge::participants::ParticipantCreate[][src]

pub struct ParticipantCreate {
    pub name: Option<String>,
    pub challonge_username: Option<String>,
    pub email: String,
    pub seed: u64,
    pub misc: String,
}
Expand description

A structure for creating a participant (adding the participant to the tournament).

Fields

name: Option<String>

The name displayed in the bracket/schedule - not required if email or challonge_username is provided. Must be unique per tournament.

challonge_username: Option<String>

Provide this if the participant has a Challonge account. He or she will be invited to the tournament.

email: String

Providing this will first search for a matching Challonge account. If one is found, this will have the same effect as the “challonge_username” attribute. If one is not found, the “new-user-email” attribute will be set, and the user will be invited via email to create an account.

seed: u64

The participant’s new seed. Must be between 1 and the current number of participants (including the new record). Overwriting an existing seed will automatically bump other participants as you would expect.

misc: String

Max: 255 characters. Multi-purpose field that is only visible via the API and handy for site integration (e.g. key to your users table).

Implementations

Creates a structure to create participant with default values.

A builder method for $field with Option<String> type.

A builder method for $field with Option<String> type.

A builder method for $field with String type.

A builder method for $field with $field_type type.

A builder method for $field with String 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.