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
Auto Trait Implementations§
impl Freeze for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnwindSafe for Runner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more