[][src]Struct splits_io_api::Race

pub struct Race {
    pub attachments: Vec<Attachment>,
    pub category: Option<Category>,
    pub chat_messages: Vec<ChatMessage>,
    pub created_at: Box<str>,
    pub entries: Vec<Entry>,
    pub game: Option<Game>,
    pub id: Uuid,
    pub join_token: Option<Box<str>>,
    pub notes: Option<Box<str>>,
    pub owner: Runner,
    pub path: Box<str>,
    pub started_at: Option<Box<str>>,
    pub updated_at: Box<str>,
    pub visibility: Visibility,
}

A Race is a live competition between multiple Runners who share a start time for their run.

API Documentation

Fields

attachments: Vec<Attachment>

Any attachments supplied by the race creator for the benefit of other entrants (e.g. for randomizers).

category: Option<Category>

The category being raced.

chat_messages: Vec<ChatMessage>

Chat messages for the Race. Only present when fetching the Race individually.

created_at: Box<str>

The time and date at which this Race was created on Splits.io. This field conforms to ISO 8601.

entries: Vec<Entry>

All Entries currently in the Race.

game: Option<Game>

The game being raced.

id: Uuid

The unique ID of the Race.

join_token: Option<Box<str>>

The token needed to join the race if it's invite-only or secret. Only provided to the owner as a response to creation.

notes: Option<Box<str>>

Any notes associatied with the Race.

owner: Runner

The Runner who created the Race.

path: Box<str>

The user-friendly URL to the Race, to be given to a user when necessary.

started_at: Option<Box<str>>

The time and date at which this Race was started on Splits.io. This field conforms to ISO 8601.

updated_at: Box<str>

The time and date at which this Race was most recently modified on Splits.io. This field conforms to ISO 8601.

visibility: Visibility

The permission set for the Race.

Trait Implementations

impl Debug for Race[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Race

impl Send for Race

impl Sync for Race

impl Unpin for Race

impl UnwindSafe for Race

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<T> From<T> for T[src]

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

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.