pub struct NewEmulator {
pub supported_platforms: Vec<i32>,
pub name: String,
pub save_strategy: i32,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub built_in: Option<bool>,
pub libretro_name: Option<String>,
pub operating_systems: Vec<i32>,
}Fields§
§supported_platforms: Vec<i32>§name: String§save_strategy: i32§created_at: Option<Timestamp>§updated_at: Option<Timestamp>§built_in: Option<bool>§libretro_name: Option<String>§operating_systems: Vec<i32>Implementations§
Source§impl NewEmulator
impl NewEmulator
Sourcepub fn save_strategy(&self) -> SaveStrategy
pub fn save_strategy(&self) -> SaveStrategy
Returns the enum value of save_strategy, or the default if the field is set to an invalid enum value.
Sourcepub fn set_save_strategy(&mut self, value: SaveStrategy)
pub fn set_save_strategy(&mut self, value: SaveStrategy)
Sets save_strategy to the provided enum value.
Sourcepub fn built_in(&self) -> bool
pub fn built_in(&self) -> bool
Returns the value of built_in, or the default value if built_in is unset.
Sourcepub fn libretro_name(&self) -> &str
pub fn libretro_name(&self) -> &str
Returns the value of libretro_name, or the default value if libretro_name is unset.
Sourcepub fn operating_systems(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<OperatingSystem>>
pub fn operating_systems( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<OperatingSystem>>
Returns an iterator which yields the valid enum values contained in operating_systems.
Sourcepub fn push_operating_systems(&mut self, value: OperatingSystem)
pub fn push_operating_systems(&mut self, value: OperatingSystem)
Appends the provided enum value to operating_systems.
Trait Implementations§
Source§impl Clone for NewEmulator
impl Clone for NewEmulator
Source§fn clone(&self) -> NewEmulator
fn clone(&self) -> NewEmulator
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 NewEmulator
impl Debug for NewEmulator
Source§impl Default for NewEmulator
impl Default for NewEmulator
Source§impl<'de> Deserialize<'de> for NewEmulator
impl<'de> Deserialize<'de> for NewEmulator
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 Hash for NewEmulator
impl Hash for NewEmulator
Source§impl<'insert> Insertable<table> for &'insert NewEmulator
impl<'insert> Insertable<table> for &'insert NewEmulator
Source§type Values = <(Option<Grouped<Eq<supported_platforms, <&'insert Vec<i32> as AsExpression<<supported_platforms as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<save_strategy, <&'insert i32 as AsExpression<<save_strategy 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<built_in, <&'insert bool as AsExpression<<built_in as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<libretro_name, <&'insert String as AsExpression<<libretro_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<operating_systems, <&'insert Vec<i32> as AsExpression<<operating_systems as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<supported_platforms, <&'insert Vec<i32> as AsExpression<<supported_platforms as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<save_strategy, <&'insert i32 as AsExpression<<save_strategy 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<built_in, <&'insert bool as AsExpression<<built_in as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<libretro_name, <&'insert String as AsExpression<<libretro_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<operating_systems, <&'insert Vec<i32> as AsExpression<<operating_systems as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<supported_platforms, &'insert Vec<i32>>>, Option<Eq<name, &'insert String>>, Option<Eq<save_strategy, &'insert i32>>, Option<Eq<created_at, &'insert Timestamp>>, Option<Eq<updated_at, &'insert Timestamp>>, Option<Eq<built_in, &'insert bool>>, Option<Eq<libretro_name, &'insert String>>, Option<Eq<operating_systems, &'insert Vec<i32>>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<supported_platforms, &'insert Vec<i32>>>, Option<Eq<name, &'insert String>>, Option<Eq<save_strategy, &'insert i32>>, Option<Eq<created_at, &'insert Timestamp>>, Option<Eq<updated_at, &'insert Timestamp>>, Option<Eq<built_in, &'insert bool>>, Option<Eq<libretro_name, &'insert String>>, Option<Eq<operating_systems, &'insert Vec<i32>>>) 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 NewEmulator
impl Insertable<table> for NewEmulator
Source§type Values = <(Option<Grouped<Eq<supported_platforms, <Vec<i32> as AsExpression<<supported_platforms as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<save_strategy, <i32 as AsExpression<<save_strategy 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<built_in, <bool as AsExpression<<built_in as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<libretro_name, <String as AsExpression<<libretro_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<operating_systems, <Vec<i32> as AsExpression<<operating_systems as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<supported_platforms, <Vec<i32> as AsExpression<<supported_platforms as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<save_strategy, <i32 as AsExpression<<save_strategy 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<built_in, <bool as AsExpression<<built_in as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<libretro_name, <String as AsExpression<<libretro_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<operating_systems, <Vec<i32> as AsExpression<<operating_systems as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<supported_platforms, Vec<i32>>>, Option<Eq<name, String>>, Option<Eq<save_strategy, i32>>, Option<Eq<created_at, Timestamp>>, Option<Eq<updated_at, Timestamp>>, Option<Eq<built_in, bool>>, Option<Eq<libretro_name, String>>, Option<Eq<operating_systems, Vec<i32>>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<supported_platforms, Vec<i32>>>, Option<Eq<name, String>>, Option<Eq<save_strategy, i32>>, Option<Eq<created_at, Timestamp>>, Option<Eq<updated_at, Timestamp>>, Option<Eq<built_in, bool>>, Option<Eq<libretro_name, String>>, Option<Eq<operating_systems, Vec<i32>>>) 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 NewEmulator
impl Message for NewEmulator
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for NewEmulator
impl PartialEq for NewEmulator
Source§impl Serialize for NewEmulator
impl Serialize for NewEmulator
impl Eq for NewEmulator
impl StructuralPartialEq for NewEmulator
impl UndecoratedInsertRecord<table> for NewEmulator
Auto Trait Implementations§
impl Freeze for NewEmulator
impl RefUnwindSafe for NewEmulator
impl Send for NewEmulator
impl Sync for NewEmulator
impl Unpin for NewEmulator
impl UnwindSafe for NewEmulator
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Add an aggregate function filter Read more
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
Add an aggregate function order Read more
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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::RequestSource§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 AsyncConnectionCore>::ExecuteFuture<'conn, 'query>
fn execute<'conn, 'query>( self, conn: &'conn mut Conn, ) -> <Conn as AsyncConnectionCore>::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 load<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>>
Source§fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnectionCore,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnectionCore,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
Executes the given query, returning a [
Stream] with the returned rows. Read moreSource§fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, LoadNext<Pin<Box<Self::Stream<'conn>>>>>
fn get_result<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, LoadNext<Pin<Box<Self::Stream<'conn>>>>>
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 get_results<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>>
Runs the command, returning an
Vec with the affected rows. Read moreSource§impl<T> WindowExpressionMethods for T
impl<T> WindowExpressionMethods for T
Source§fn over(self) -> Self::Outputwhere
Self: OverDsl,
fn over(self) -> Self::Outputwhere
Self: OverDsl,
Turn a function call into a window function call Read more
Source§fn window_filter<P>(self, f: P) -> Self::Output
fn window_filter<P>(self, f: P) -> Self::Output
Add a filter to the current window function Read more
Source§fn partition_by<E>(self, expr: E) -> Self::Outputwhere
Self: PartitionByDsl<E>,
fn partition_by<E>(self, expr: E) -> Self::Outputwhere
Self: PartitionByDsl<E>,
Add a partition clause to the current window function Read more
Source§fn window_order<E>(self, expr: E) -> Self::Outputwhere
Self: OrderWindowDsl<E>,
fn window_order<E>(self, expr: E) -> Self::Outputwhere
Self: OrderWindowDsl<E>,
Add a order clause to the current window function Read more