[][src]Struct toornament::Participant

pub struct Participant {
    pub id: Option<ParticipantId>,
    pub name: String,
    pub logo: Option<ParticipantLogo>,
    pub lineup: Option<Participants>,
    pub custom_fields: Option<CustomFields>,
    pub country: Option<String>,
    pub email: Option<String>,
    pub check_in: Option<bool>,
    pub custom_fields_private: Option<CustomFields>,
}

An opponent involved in a match/tournament.

Fields

id: Option<ParticipantId>

Unique identifier for this participant.

name: String

Participant name (maximum 40 characters).

Logo of the participant.

lineup: Option<Participants>

This property is only available when the participant type is "team".

custom_fields: Option<CustomFields>

List of public custom fields

country: Option<String>

Country of the participant. This property is only available when the "country" option is enabled for this tournament. This value is represented as an ISO 3166-1 alpha-2 country code.

email: Option<String>

Participant email.

check_in: Option<bool>

Participant check-in. This property is only available when "check-in" option is enabled for this tournament.

custom_fields_private: Option<CustomFields>

This property is only available when the query parameter 'with_custom_fields' is true.

Methods

impl Participant[src]

pub fn create<S: Into<String>>(name: S) -> Participant[src]

Create participant object for adding for a tournament (Toornament::create_tournament_participant)

pub fn id(self, id: ParticipantId) -> Self[src]

A builder method for $field with Option type.

pub fn name<S: Into<String>>(self, name: S) -> Self[src]

A builder method for $field with String type.

A builder method for $field with Option type.

pub fn lineup(self, lineup: Participants) -> Self[src]

A builder method for $field with Option type.

pub fn custom_fields(self, custom_fields: CustomFields) -> Self[src]

A builder method for $field with Option type.

pub fn country(self, country: String) -> Self[src]

A builder method for $field with Option type.

pub fn email(self, email: String) -> Self[src]

A builder method for $field with Option type.

pub fn check_in(self, check_in: bool) -> Self[src]

A builder method for $field with Option type.

pub fn custom_fields_private(self, custom_fields_private: CustomFields) -> Self[src]

A builder method for $field with Option type.

Trait Implementations

impl Clone for Participant[src]

impl Debug for Participant[src]

impl Default for Participant[src]

impl<'de> Deserialize<'de> for Participant[src]

impl Eq for Participant[src]

impl Ord for Participant[src]

impl PartialEq<Participant> for Participant[src]

impl PartialOrd<Participant> for Participant[src]

impl Serialize for Participant[src]

impl StructuralEq for Participant[src]

impl StructuralPartialEq for Participant[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,