Struct arnak::CollectionItemBrief
source · pub struct CollectionItemBrief {
pub id: u64,
pub collection_id: u64,
pub item_type: GameType,
pub name: String,
pub status: CollectionItemStatus,
pub stats: Option<CollectionItemStatsBrief>,
}Expand description
An item in a collection, in brief form. With only the name, status, type, and IDs.
Fields§
§id: u64The ID of the game.
collection_id: u64The collection ID of the object.
item_type: GameTypeThe type of game, which will either be boardgame or expansion.
name: StringThe name of the game.
status: CollectionItemStatusStatus of the game in this collection, such as own, preowned, wishlist.
stats: Option<CollectionItemStatsBrief>Game stats such as number of players, can sometimes be omitted from the result.
Trait Implementations§
source§impl Clone for CollectionItemBrief
impl Clone for CollectionItemBrief
source§fn clone(&self) -> CollectionItemBrief
fn clone(&self) -> CollectionItemBrief
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> CollectionItemType<'a> for CollectionItemBrief
impl<'a> CollectionItemType<'a> for CollectionItemBrief
fn base_query(username: &'a str) -> BaseCollectionQuery<'a>
fn get_stats(&self) -> Option<CollectionItemStatsBrief>
source§impl Debug for CollectionItemBrief
impl Debug for CollectionItemBrief
source§impl<'de> Deserialize<'de> for CollectionItemBrief
impl<'de> Deserialize<'de> for CollectionItemBrief
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
source§impl PartialEq for CollectionItemBrief
impl PartialEq for CollectionItemBrief
impl StructuralPartialEq for CollectionItemBrief
Auto Trait Implementations§
impl Freeze for CollectionItemBrief
impl RefUnwindSafe for CollectionItemBrief
impl Send for CollectionItemBrief
impl Sync for CollectionItemBrief
impl Unpin for CollectionItemBrief
impl UnwindSafe for CollectionItemBrief
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)