pub enum GameType {
BoardGame,
BoardGameExpansion,
}Expand description
The type of game, board game or expansion.
Variants§
BoardGame
A board game, or expansion.
Due to the way the API works, this type can include expansions too. If a request is made for just board games, or the game type is not filtered, then both items with a type of GameType::BoardGame and those with a type of GameType::BoardGameExpansion will be returned, and they will ALL have the type of GameType::BoardGame. However when requesting just expansions, the returned items will correctly have the type GameType::BoardGameExpansion.
A workaround to this can be to make 2 requests, one to include GameType::BoardGame and exclude GameType::BoardGameExpansion, followed by another to just include GameType::BoardGameExpansion.
BoardGameExpansion
A board game expansion.
Trait Implementations§
source§impl<'de> Deserialize<'de> for GameType
impl<'de> Deserialize<'de> for GameType
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
impl StructuralPartialEq for GameType
Auto Trait Implementations§
impl Freeze for GameType
impl RefUnwindSafe for GameType
impl Send for GameType
impl Sync for GameType
impl Unpin for GameType
impl UnwindSafe for GameType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)