Struct toornament::Discipline [] [src]

pub struct Discipline {
    pub id: DisciplineId,
    pub name: String,
    pub short_name: String,
    pub full_name: String,
    pub copyrights: String,
    pub team_size: Option<TeamSize>,
    pub additional_fields: Option<AdditionalFields>,
}

A game discipline object.

Fields

An identifier for a discipline, can be used in others APIs. Example: "counterstrike_go"

The official name of the discipline. Example: "Counter-Strike: GO"

The short name of the discipline. Example: "CS:GO"

The complete name of the discipline. Example: "Counter-Strike: Global Offensive"

The name of the publisher of the discipline or any other right related information about the owner of the discipline. Example: "Valve Software"

(Optional) Sets the minimum and maximum of players in a team. Example: (4, 8), where 4 is minimal size of a team in the tournament and 8 is maximal size of a team in the tournament.

(Optional) Additional fields concerning the discipline. Note about the special fields in this API: if the field is mentioned, you must use one of the following values.

Methods

impl Discipline
[src]

Creates new Discipline object.

A builder method for $field with $field_type type.

A builder method for $field with String type.

A builder method for $field with String type.

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

Trait Implementations

impl Clone for Discipline
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Discipline
[src]

Formats the value using the given formatter.

impl Default for Discipline
[src]

Returns the "default value" for a type. Read more