Struct toornament::Tournament [] [src]

pub struct Tournament {
    pub id: Option<TournamentId>,
    pub discipline: DisciplineId,
    pub name: String,
    pub full_name: Option<String>,
    pub status: TournamentStatus,
    pub date_start: Option<Date>,
    pub date_end: Option<Date>,
    pub time_zone: Option<String>,
    pub online: bool,
    pub public: bool,
    pub location: Option<String>,
    pub country: Option<String>,
    pub size: i64,
    pub participant_type: Option<ParticipantType>,
    pub match_type: Option<MatchType>,
    pub organization: Option<String>,
    pub website: Option<String>,
    pub description: Option<String>,
    pub rules: Option<String>,
    pub prize: Option<String>,
    pub team_size_min: Option<i64>,
    pub team_size_max: Option<i64>,
    pub streams: Option<Streams>,
    pub check_in: Option<bool>,
    pub participant_nationality: Option<bool>,
    pub match_format: Option<MatchFormat>,
}

A tournament object.

Fields

An hexadecimal unique identifier for this tournament. Example: "5608fd12140ba061298b4569"

This string is a unique identifier of a discipline. Example: "my_discipline"

Name of a tournament (maximum 30 characeters). Example: "My Weekly Tournament"

Complete name of this tournament (maximum 80 characters). Example: "My Weekly Tournament - Long title"

Status of the tournament. Possible values: setup, running, completed

Starting date of the tournament. This value uses the ISO 8601 date containing only the date section. Example: "2015-09-06"

Ending date of the tournament. This value uses the ISO 8601 date containing only the date section. Example: "2015-09-07"

Time zone of the tournament. This value is represented using the IANA tz database. Example: "America/Sao_Paulo"

Whether the tournament is played on internet or not. Example: true

Whether the tournament is public or private. Example: true

Location (city, address, place of interest) of the tournament. Example: "London"

Country of the tournament. This value uses the ISO 3166-1 alpha-2 country code. Example: "UK"

Size of a tournament. Represents the expected number of participants it'll be able to manage. Example: 16

Type of participants who plays in the tournament. Possible values: team, single

Type of matches played in the tournament. Possible values: duel, ffa

Tournament organizer: individual, group, association or company. Example: "Avery Bullock"

URL of the website Example: "http://www.toornament.com"

User-defined description of the tournament (maximum 1,500 characters). Example: "My description \n on multiple lines"

User-defined rules of the tournament (maximum 10,000 characters). Example: "My rules \n on multiple lines"

User-defined description of the tournament prizes (maximum 1,500 characters). Example: "1 - 10,000$ \n 2 - 5,000$"

(Optional) If the "participant type" value in this tournament is 'team', specify the smallest and the largest possible team sizes.

(Optional) If the "participant type" value in this tournament is 'team', specify the smallest and the largest possible team sizes.

(Optional) A list of streams

Enable or disable the participant check-in in the tournament. Example: true

Enable or disable the participant flag in the tournament. Example: true

Define the default match format for every matches in the tournament. Possible values: none, one, home_away, bo3, bo5, bo7, bo9, bo11

Methods

impl Tournament
[src]

Creates new Discipline object.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with String type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

Trait Implementations

impl Clone for Tournament
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Tournament
[src]

Formats the value using the given formatter.

impl Eq for Tournament
[src]

impl Ord for Tournament
[src]

This method returns an Ordering between self and other. Read more

impl PartialEq for Tournament
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Tournament
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more