Struct splits_io_api::Runner
source · 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>,
}Expand description
A Runner is a user who has at least one run tied to their account.
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§
source§impl Runner
impl Runner
sourcepub async fn search(client: &Client, name: &str) -> Result<Vec<Runner>, Error>
pub async fn search(client: &Client, name: &str) -> Result<Vec<Runner>, Error>
Searches for a Runner based on the name of the runner.
sourcepub async fn myself(client: &Client) -> Result<Runner, Error>
pub async fn myself(client: &Client) -> Result<Runner, Error>
Gets the Runner that is associated with the current user.
sourcepub async fn get(client: &Client, name: &str) -> Result<Runner, Error>
pub async fn get(client: &Client, name: &str) -> Result<Runner, Error>
Gets a Runner based on the name of the runner.
sourcepub async fn runs(&self, client: &Client) -> Result<Vec<Run>, Error>
pub async fn runs(&self, client: &Client) -> Result<Vec<Run>, Error>
Gets the Runs that are associated with the Runner.
sourcepub async fn pbs(&self, client: &Client) -> Result<Vec<Run>, Error>
pub async fn pbs(&self, client: &Client) -> Result<Vec<Run>, Error>
Gets the personal best Runs that are associated with the Runner.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Runner
impl<'de> Deserialize<'de> for Runner
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more