[][src]Struct speedruns::data::types::Category

pub struct Category {
    pub game_id: u64,
    pub slug: String,
    pub name: String,
    pub id: u64,
    pub per: CategoryType,
    pub rules: String,
}

Fields

game_id: u64slug: Stringname: Stringid: u64per: CategoryTyperules: String

Methods

impl Category[src]

pub fn game_id(&self) -> &u64[src]

pub fn slug(&self) -> &String[src]

pub fn name(&self) -> &String[src]

pub fn id(&self) -> &u64[src]

pub fn per(&self) -> &CategoryType[src]

pub fn rules(&self) -> &String[src]

impl Category[src]

pub fn src_id(&self) -> String[src]

This item's ID as it would be formatted for SpeedRun.Com.

pub fn src_slug(&self) -> String[src]

This item's URL as it would be formatted for SpeedRun.com.

Trait Implementations

impl Clone for Category[src]

impl Debug for Category[src]

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

impl Eq for Category[src]

impl From<Category> for AnyModel[src]

impl Hash for Category[src]

impl Model for Category[src]

impl Ord for Category[src]

impl PartialEq<Category> for Category[src]

impl PartialOrd<Category> for Category[src]

impl Serialize for Category[src]

impl StructuralEq for Category[src]

impl StructuralPartialEq for Category[src]

impl TryFrom<AnyModel> for Category[src]

type Error = &'static str

The type returned in the event of a conversion error.

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,