[][src]Struct splits_io_api::Runner

pub struct Runner {
    pub avatar: Option<Box<str>>,
    pub created_at: Box<str>,
    pub display_name: Option<Box<str>>,
    pub id: Box<str>,
    pub name: Box<str>,
    pub twitch_id: Option<Box<str>>,
    pub twitch_name: Option<Box<str>>,
    pub updated_at: Box<str>,
}

A Runner is a user who has at least one run tied to their account.

API Documentation

Fields

avatar: Option<Box<str>>

The avatar of the user.

created_at: Box<str>

The time and date at which this user first authenticated with Splits.io. This field conforms to ISO 8601.

display_name: Option<Box<str>>

The display name of the user.

id: Box<str>

The unique ID of the user.

name: Box<str>

The Splits.io username of the user.

twitch_id: Option<Box<str>>

The Twitch ID of the user.

twitch_name: Option<Box<str>>

The Twitch name of the user.

updated_at: Box<str>

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

Implementations

impl Runner[src]

pub async fn search(client: &Client, name: &str) -> Result<Vec<Runner>, Error>[src]

Searches for a Runner based on the name of the runner.

pub async fn myself(client: &Client) -> Result<Runner, Error>[src]

Gets the Runner that is associated with the current user.

pub async fn get(client: &Client, name: &str) -> Result<Runner, Error>[src]

Gets a Runner based on the name of the runner.

pub async fn runs(&self, client: &Client) -> Result<Vec<Run>, Error>[src]

Gets the Runs that are associated with the Runner.

pub async fn pbs(&self, client: &Client) -> Result<Vec<Run>, Error>[src]

Gets the personal best Runs that are associated with the Runner.

pub async fn games(&self, client: &Client) -> Result<Vec<Game>, Error>[src]

Gets the Games that are associated with the Runner.

pub async fn categories(&self, client: &Client) -> Result<Vec<Category>, Error>[src]

Gets the Categories that are associated with the Runner.

Trait Implementations

impl Debug for Runner[src]

impl<'de> Deserialize<'de> for Runner[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: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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.