pub struct GameId { /* private fields */ }Implementations§
Source§impl GameId
impl GameId
pub const fn id(&self) -> u64
pub fn pretty_name(&self) -> &str
pub fn forum(&self) -> &Url
pub fn page(&self) -> &Url
pub fn genre(&self) -> &str
pub fn domain_name(&self) -> &str
pub const fn approved_date(&self) -> UtcDateTime
pub const fn file_views(&self) -> u64
pub const fn endorsements(&self) -> u64
pub const fn mods(&self) -> u64
pub fn categories(&self) -> &[GameCategory]
Sourcepub fn trace_parent_category(
&self,
category: &GameCategory,
) -> Option<&GameCategory>
pub fn trace_parent_category( &self, category: &GameCategory, ) -> Option<&GameCategory>
Get the parent category for a given category.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GameId
impl<'de> Deserialize<'de> for GameId
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 GameId
impl RefUnwindSafe for GameId
impl Send for GameId
impl Sync for GameId
impl Unpin for GameId
impl UnwindSafe for GameId
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