[][src]Struct splits_io_api::Category

pub struct Category {
    pub created_at: Box<str>,
    pub id: Box<str>,
    pub name: Box<str>,
    pub updated_at: Box<str>,
}

A Category is a ruleset for a Game (Any%, 100%, MST, etc.) and an optional container for Runs.

API Documentation

Fields

created_at: Box<str>

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

id: Box<str>

The unique ID of the category.

name: Box<str>

The name of the category.

updated_at: Box<str>

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

Implementations

impl Category[src]

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

Gets a Category.

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

Gets the Runners that belong to the Category.

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

Gets the Runs that belong to the Category.

Trait Implementations

impl Debug for Category[src]

impl<'de> Deserialize<'de> for Category[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.