pub struct GameCommon {
pub id: GameID,
pub url: String,
pub title: String,
pub short_text: Option<String>,
pub type: GameType,
pub classification: GameClassification,
pub cover_url: Option<String>,
pub created_at: OffsetDateTime,
pub published_at: Option<OffsetDateTime>,
pub min_price: u64,
pub sale: Option<GameSale>,
pub traits: Vec<GameTrait>,
}Expand description
This struct represents all the shared fields among the different Game structs
It should always be used alongside serde flattten
Fields§
§id: GameID§url: String§title: String§short_text: Option<String>§type: GameType§classification: GameClassification§cover_url: Option<String>§created_at: OffsetDateTime§published_at: Option<OffsetDateTime>§min_price: u64§sale: Option<GameSale>§traits: Vec<GameTrait>Trait Implementations§
Source§impl Clone for GameCommon
impl Clone for GameCommon
Source§fn clone(&self) -> GameCommon
fn clone(&self) -> GameCommon
Returns a duplicate 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 Debug for GameCommon
impl Debug for GameCommon
Source§impl<'de> Deserialize<'de> for GameCommon
impl<'de> Deserialize<'de> for GameCommon
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 GameCommon
impl PartialEq for GameCommon
Source§impl Serialize for GameCommon
impl Serialize for GameCommon
impl StructuralPartialEq for GameCommon
Auto Trait Implementations§
impl Freeze for GameCommon
impl RefUnwindSafe for GameCommon
impl Send for GameCommon
impl Sync for GameCommon
impl Unpin for GameCommon
impl UnwindSafe for GameCommon
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