Struct speedrun_api::types::Leaderboard
source · [−]pub struct Leaderboard<'a> {
pub weblink: String,
pub game: GameId<'a>,
pub category: CategoryId<'a>,
pub level: Option<LevelId<'a>>,
pub platform: Option<PlatformId<'a>>,
pub region: Option<RegionId<'a>>,
pub emulators: Option<bool>,
pub video_only: bool,
pub timing: Option<TimingMethod>,
pub values: HashMap<VariableId<'a>, String>,
pub runs: Vec<RankedRun<'a>>,
pub links: Vec<Link>,
}Fields
weblink: Stringgame: GameId<'a>category: CategoryId<'a>level: Option<LevelId<'a>>platform: Option<PlatformId<'a>>region: Option<RegionId<'a>>emulators: Option<bool>video_only: booltiming: Option<TimingMethod>values: HashMap<VariableId<'a>, String>runs: Vec<RankedRun<'a>>links: Vec<Link>Trait Implementations
sourceimpl<'a> Clone for Leaderboard<'a>
impl<'a> Clone for Leaderboard<'a>
sourcefn clone(&self) -> Leaderboard<'a>
fn clone(&self) -> Leaderboard<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for Leaderboard<'a>
impl<'a> Debug for Leaderboard<'a>
sourceimpl<'de, 'a> Deserialize<'de> for Leaderboard<'a>
impl<'de, 'a> Deserialize<'de> for Leaderboard<'a>
sourcefn 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
sourceimpl<'a> From<Leaderboard<'a>> for CategoryId<'a>
impl<'a> From<Leaderboard<'a>> for CategoryId<'a>
sourcefn from(value: Leaderboard<'a>) -> Self
fn from(value: Leaderboard<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Leaderboard<'a>> for GameId<'a>
impl<'a> From<Leaderboard<'a>> for GameId<'a>
sourcefn from(value: Leaderboard<'a>) -> Self
fn from(value: Leaderboard<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<Leaderboard<'a>> for Leaderboard<'a>
impl<'a> PartialEq<Leaderboard<'a>> for Leaderboard<'a>
sourcefn eq(&self, other: &Leaderboard<'a>) -> bool
fn eq(&self, other: &Leaderboard<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl<'a> StructuralPartialEq for Leaderboard<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Leaderboard<'a>
impl<'a> Send for Leaderboard<'a>
impl<'a> Sync for Leaderboard<'a>
impl<'a> Unpin for Leaderboard<'a>
impl<'a> UnwindSafe for Leaderboard<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more