pub struct Game {
pub id: i32,
pub path: String,
pub platform_id: Option<i32>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub deleted_at: Option<Timestamp>,
pub is_deleted: bool,
pub default_file_id: Option<i32>,
pub storage_type: i32,
pub third_party: bool,
pub steam_app_id: Option<i64>,
}
Fields§
§id: i32
§path: String
§platform_id: Option<i32>
§created_at: Option<Timestamp>
§updated_at: Option<Timestamp>
§deleted_at: Option<Timestamp>
§is_deleted: bool
§default_file_id: Option<i32>
§storage_type: i32
§third_party: bool
§steam_app_id: Option<i64>
Implementations§
Source§impl Game
impl Game
Sourcepub fn platform_id(&self) -> i32
pub fn platform_id(&self) -> i32
Returns the value of platform_id
, or the default value if platform_id
is unset.
Sourcepub fn default_file_id(&self) -> i32
pub fn default_file_id(&self) -> i32
Returns the value of default_file_id
, or the default value if default_file_id
is unset.
Sourcepub fn storage_type(&self) -> StorageType
pub fn storage_type(&self) -> StorageType
Returns the enum value of storage_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_storage_type(&mut self, value: StorageType)
pub fn set_storage_type(&mut self, value: StorageType)
Sets storage_type
to the provided enum value.
Sourcepub fn steam_app_id(&self) -> i64
pub fn steam_app_id(&self) -> i64
Returns the value of steam_app_id
, or the default value if steam_app_id
is unset.
Trait Implementations§
Source§impl<'update> AsChangeset for &'update Game
impl<'update> AsChangeset for &'update Game
Source§type Changeset = <(Grouped<Eq<path, <&'update String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<platform_id, <&'update i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'update Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'update Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <&'update Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_deleted, <&'update bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<default_file_id, <&'update i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<storage_type, <&'update i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>, Grouped<Eq<third_party, <&'update bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<steam_app_id, <&'update i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<path, <&'update String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<platform_id, <&'update i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'update Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'update Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <&'update Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_deleted, <&'update bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<default_file_id, <&'update i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<storage_type, <&'update i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>, Grouped<Eq<third_party, <&'update bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<steam_app_id, <&'update i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self
into the actual update statement being executedSource§impl AsChangeset for Game
impl AsChangeset for Game
Source§type Changeset = <(Grouped<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<platform_id, <i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_deleted, <bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<default_file_id, <i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<storage_type, <i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>, Grouped<Eq<third_party, <bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<steam_app_id, <i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<platform_id, <i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_deleted, <bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<default_file_id, <i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<storage_type, <i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>, Grouped<Eq<third_party, <bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<steam_app_id, <i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self
into the actual update statement being executedSource§impl<__FK> BelongsTo<&Game> for GameFilewhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Game> for GameFilewhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<&Game> for GameGenreMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Game> for GameGenreMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<&Game> for GameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Game> for GameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<&Game> for NewGameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Game> for NewGameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<&Game> for SimilarGameMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Game> for SimilarGameMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<&Platform> for Gamewhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Platform> for Gamewhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = platform_id
type ForeignKeyColumn = platform_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Game> for GameFilewhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Game> for GameFilewhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Game> for GameGenreMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Game> for GameGenreMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Game> for GameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Game> for GameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Game> for NewGameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Game> for NewGameMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Game> for SimilarGameMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Game> for SimilarGameMapwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Game: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = game_id
type ForeignKeyColumn = game_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Platform> for Gamewhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Platform> for Gamewhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = platform_id
type ForeignKeyColumn = platform_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<'de> Deserialize<'de> for Game
impl<'de> Deserialize<'de> for Game
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<'ident> Identifiable for &'ident Game
impl<'ident> Identifiable for &'ident Game
Source§impl<'insert> Insertable<table> for &'insert Game
impl<'insert> Insertable<table> for &'insert Game
Source§type Values = <(Option<Grouped<Eq<id, <&'insert i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<path, <&'insert String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<platform_id, <&'insert i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'insert Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'insert Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <&'insert Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_deleted, <&'insert bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<default_file_id, <&'insert i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<storage_type, <&'insert i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<third_party, <&'insert bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<steam_app_id, <&'insert i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<id, <&'insert i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<path, <&'insert String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<platform_id, <&'insert i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'insert Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'insert Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <&'insert Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_deleted, <&'insert bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<default_file_id, <&'insert i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<storage_type, <&'insert i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<third_party, <&'insert bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<steam_app_id, <&'insert i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<id, &'insert i32>>, Option<Eq<path, &'insert String>>, Option<Eq<platform_id, &'insert i32>>, Option<Eq<created_at, &'insert Timestamp>>, Option<Eq<updated_at, &'insert Timestamp>>, Option<Eq<deleted_at, &'insert Timestamp>>, Option<Eq<is_deleted, &'insert bool>>, Option<Eq<default_file_id, &'insert i32>>, Option<Eq<storage_type, &'insert i32>>, Option<Eq<third_party, &'insert bool>>, Option<Eq<steam_app_id, &'insert i64>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<id, &'insert i32>>, Option<Eq<path, &'insert String>>, Option<Eq<platform_id, &'insert i32>>, Option<Eq<created_at, &'insert Timestamp>>, Option<Eq<updated_at, &'insert Timestamp>>, Option<Eq<deleted_at, &'insert Timestamp>>, Option<Eq<is_deleted, &'insert bool>>, Option<Eq<default_file_id, &'insert i32>>, Option<Eq<storage_type, &'insert i32>>, Option<Eq<third_party, &'insert bool>>, Option<Eq<steam_app_id, &'insert i64>>) as Insertable<table>>::Values
Construct
Self::Values
Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self
into a given table. Read moreSource§impl Insertable<table> for Game
impl Insertable<table> for Game
Source§type Values = <(Option<Grouped<Eq<id, <i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<platform_id, <i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_deleted, <bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<default_file_id, <i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<storage_type, <i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<third_party, <bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<steam_app_id, <i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<id, <i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<platform_id, <i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<deleted_at, <Timestamp as AsExpression<<deleted_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_deleted, <bool as AsExpression<<is_deleted as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<default_file_id, <i32 as AsExpression<<default_file_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<storage_type, <i32 as AsExpression<<storage_type as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<third_party, <bool as AsExpression<<third_party as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<steam_app_id, <i64 as AsExpression<<steam_app_id as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<id, i32>>, Option<Eq<path, String>>, Option<Eq<platform_id, i32>>, Option<Eq<created_at, Timestamp>>, Option<Eq<updated_at, Timestamp>>, Option<Eq<deleted_at, Timestamp>>, Option<Eq<is_deleted, bool>>, Option<Eq<default_file_id, i32>>, Option<Eq<storage_type, i32>>, Option<Eq<third_party, bool>>, Option<Eq<steam_app_id, i64>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<id, i32>>, Option<Eq<path, String>>, Option<Eq<platform_id, i32>>, Option<Eq<created_at, Timestamp>>, Option<Eq<updated_at, Timestamp>>, Option<Eq<deleted_at, Timestamp>>, Option<Eq<is_deleted, bool>>, Option<Eq<default_file_id, i32>>, Option<Eq<storage_type, i32>>, Option<Eq<third_party, bool>>, Option<Eq<steam_app_id, i64>>) as Insertable<table>>::Values
Construct
Self::Values
Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self
into a given table. Read moreSource§impl Message for Game
impl Message for Game
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10), __DB> for Game
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10), __DB> for Game
Source§impl<__DB: Backend> Selectable<__DB> for Game
impl<__DB: Backend> Selectable<__DB> for Game
Source§type SelectExpression = (id, path, platform_id, created_at, updated_at, deleted_at, is_deleted, default_file_id, storage_type, third_party, steam_app_id)
type SelectExpression = (id, path, platform_id, created_at, updated_at, deleted_at, is_deleted, default_file_id, storage_type, third_party, steam_app_id)
The expression you’d like to select. Read more
Source§fn construct_selection() -> Self::SelectExpression
fn construct_selection() -> Self::SelectExpression
Construct an instance of the expression
impl Eq for Game
impl StructuralPartialEq for Game
impl UndecoratedInsertRecord<table> for Game
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<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
Source§type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by
belonging_to
Source§fn belonging_to(
parents: &'a Vec<Parent>,
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
fn belonging_to( parents: &'a Vec<Parent>, ) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
Get the record(s) belonging to record(s)
other
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T, Conn> RunQueryDsl<Conn> for T
impl<T, Conn> RunQueryDsl<Conn> for T
Source§fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>
fn execute<'conn, 'query>( self, conn: &'conn mut Conn, ) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>
Executes the given command, returning the number of rows affected. Read more
Source§fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
fn load<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
Source§fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
Source§fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>
fn get_result<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>
Runs the command, and returns the affected row. Read more
Source§fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
fn get_results<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
Runs the command, returning an
Vec
with the affected rows. Read moreSource§fn first<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
fn first<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
Attempts to load a single record. Read more
Source§impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
Source§fn as_select() -> SelectBy<T, DB>
fn as_select() -> SelectBy<T, DB>
Construct a select clause based on a
Selectable
implementation. Read moreSource§fn as_returning() -> SelectBy<Self, DB>
fn as_returning() -> SelectBy<Self, DB>
An alias for
as_select
that can be used with returning clausesSource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.