pub struct AllowedStates {
pub state_id: i32,
pub state_type: String,
pub input: i32,
pub output: i32,
pub high: i32,
pub low: i32,
}
Fields§
§state_id: i32
§state_type: String
§input: i32
§output: i32
§high: i32
§low: i32
Implementations§
Source§impl AllowedStates
impl AllowedStates
pub fn to_hashmap(&self) -> HashMap<&'static str, bool>
Trait Implementations§
Source§impl Debug for AllowedStates
impl Debug for AllowedStates
Source§impl<'de> Deserialize<'de> for AllowedStates
impl<'de> Deserialize<'de> for AllowedStates
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<'insert> Insertable<table> for &'insert AllowedStates
impl<'insert> Insertable<table> for &'insert AllowedStates
Source§type Values = <(Option<Eq<state_id, <&'insert i32 as AsExpression<<state_id as Expression>::SqlType>>::Expression>>, Option<Eq<state_type, <&'insert String as AsExpression<<state_type as Expression>::SqlType>>::Expression>>, Option<Eq<input, <&'insert i32 as AsExpression<<input as Expression>::SqlType>>::Expression>>, Option<Eq<output, <&'insert i32 as AsExpression<<output as Expression>::SqlType>>::Expression>>, Option<Eq<high, <&'insert i32 as AsExpression<<high as Expression>::SqlType>>::Expression>>, Option<Eq<low, <&'insert i32 as AsExpression<<low as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<state_id, <&'insert i32 as AsExpression<<state_id as Expression>::SqlType>>::Expression>>, Option<Eq<state_type, <&'insert String as AsExpression<<state_type as Expression>::SqlType>>::Expression>>, Option<Eq<input, <&'insert i32 as AsExpression<<input as Expression>::SqlType>>::Expression>>, Option<Eq<output, <&'insert i32 as AsExpression<<output as Expression>::SqlType>>::Expression>>, Option<Eq<high, <&'insert i32 as AsExpression<<high as Expression>::SqlType>>::Expression>>, Option<Eq<low, <&'insert i32 as AsExpression<<low as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read moreSource§impl<'insert> Insertable<table> for AllowedStates
impl<'insert> Insertable<table> for AllowedStates
Source§type Values = <(Option<Eq<state_id, <i32 as AsExpression<<state_id as Expression>::SqlType>>::Expression>>, Option<Eq<state_type, <String as AsExpression<<state_type as Expression>::SqlType>>::Expression>>, Option<Eq<input, <i32 as AsExpression<<input as Expression>::SqlType>>::Expression>>, Option<Eq<output, <i32 as AsExpression<<output as Expression>::SqlType>>::Expression>>, Option<Eq<high, <i32 as AsExpression<<high as Expression>::SqlType>>::Expression>>, Option<Eq<low, <i32 as AsExpression<<low as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<state_id, <i32 as AsExpression<<state_id as Expression>::SqlType>>::Expression>>, Option<Eq<state_type, <String as AsExpression<<state_type as Expression>::SqlType>>::Expression>>, Option<Eq<input, <i32 as AsExpression<<input as Expression>::SqlType>>::Expression>>, Option<Eq<output, <i32 as AsExpression<<output as Expression>::SqlType>>::Expression>>, Option<Eq<high, <i32 as AsExpression<<high as Expression>::SqlType>>::Expression>>, Option<Eq<low, <i32 as AsExpression<<low as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read moreSource§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for AllowedStates
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for AllowedStates
Source§impl Serialize for AllowedStates
impl Serialize for AllowedStates
impl<'insert> UndecoratedInsertRecord<table> for AllowedStates
Auto Trait Implementations§
impl Freeze for AllowedStates
impl RefUnwindSafe for AllowedStates
impl Send for AllowedStates
impl Sync for AllowedStates
impl Unpin for AllowedStates
impl UnwindSafe for AllowedStates
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more