Struct PartialGame

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

Fields§

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

Trait Implementations§

Source§

impl Clone for PartialGame

Source§

fn clone(&self) -> PartialGame

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 PartialGame

Source§

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

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

impl Default for PartialGame

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for PartialGame

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 PartialGame

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§

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>,