Struct Game

Source
pub struct Game {
Show 40 fields pub id: String, pub library: String, pub title: String, pub alternate_titles: String, pub series: String, pub developer: String, pub publisher: String, pub primary_platform: String, pub platforms: TagVec, pub date_added: String, pub date_modified: String, pub detailed_platforms: Option<Vec<Tag>>, pub legacy_broken: bool, pub legacy_extreme: bool, pub play_mode: String, pub status: String, pub notes: String, pub tags: TagVec, pub detailed_tags: Option<Vec<Tag>>, pub source: String, pub legacy_application_path: String, pub legacy_launch_command: String, pub release_date: String, pub version: String, pub original_description: String, pub language: String, pub active_data_id: Option<i64>, pub active_data_on_disk: bool, pub last_played: Option<String>, pub playtime: i64, pub play_counter: i64, pub active_game_config_id: Option<i64>, pub active_game_config_owner: Option<String>, pub archive_state: i64, pub game_data: Option<Vec<GameData>>, pub add_apps: Option<Vec<AdditionalApp>>, pub ruffle_support: String, pub logo_path: String, pub screenshot_path: String, pub ext_data: Option<HashMap<String, Value>>,
}

Fields§

§id: String§library: String§title: String§alternate_titles: String§series: String§developer: String§publisher: String§primary_platform: String§platforms: TagVec§date_added: String§date_modified: String§detailed_platforms: Option<Vec<Tag>>§legacy_broken: bool§legacy_extreme: bool§play_mode: String§status: String§notes: String§tags: TagVec§detailed_tags: Option<Vec<Tag>>§source: String§legacy_application_path: String§legacy_launch_command: String§release_date: String§version: String§original_description: String§language: String§active_data_id: Option<i64>§active_data_on_disk: bool§last_played: Option<String>§playtime: i64§play_counter: i64§active_game_config_id: Option<i64>§active_game_config_owner: Option<String>§archive_state: i64§game_data: Option<Vec<GameData>>§add_apps: Option<Vec<AdditionalApp>>§ruffle_support: String§logo_path: String§screenshot_path: String§ext_data: Option<HashMap<String, Value>>

Trait Implementations§

Source§

impl Clone for Game

Source§

fn clone(&self) -> Game

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Game

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Game

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Game

Source§

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 From<&PartialGame> for Game

Source§

fn from(source: &PartialGame) -> Self

Converts to this type from the input type.
Source§

impl From<Game> for PartialGame

Source§

fn from(game: Game) -> Self

Converts to this type from the input type.
Source§

impl Serialize for Game

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Game

§

impl RefUnwindSafe for Game

§

impl Send for Game

§

impl Sync for Game

§

impl Unpin for Game

§

impl UnwindSafe for Game

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,