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.
pub fn challonge_username<'a, S: Into<String>>(
&'a mut self,
challonge_username: S
) -> &'a mut Self
pub fn challonge_username<'a, S: Into<String>>(
&'a mut self,
challonge_username: S
) -> &'a mut Self
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParticipantCreate
impl Send for ParticipantCreate
impl Sync for ParticipantCreate
impl Unpin for ParticipantCreate
impl UnwindSafe for ParticipantCreate
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more