pub struct DBLocalTriggerBoard {Show 14 fields
pub board_id: i16,
pub dsi: Option<i16>,
pub j: Option<i16>,
pub rat: Option<i16>,
pub ltb_id: Option<i16>,
pub cable_len: f32,
pub paddle1_id: Option<i16>,
pub paddle2_id: Option<i16>,
pub paddle3_id: Option<i16>,
pub paddle4_id: Option<i16>,
pub paddle5_id: Option<i16>,
pub paddle6_id: Option<i16>,
pub paddle7_id: Option<i16>,
pub paddle8_id: Option<i16>,
}
Expand description
The DB wrapper for the LocalTriggerBoard, for easy implementation there are no joins, we do them manually in the public implementation of the LocaltriggerBoard
Fields§
§board_id: i16
§dsi: Option<i16>
§j: Option<i16>
§rat: Option<i16>
§ltb_id: Option<i16>
§cable_len: f32
§paddle1_id: Option<i16>
§paddle2_id: Option<i16>
§paddle3_id: Option<i16>
§paddle4_id: Option<i16>
§paddle5_id: Option<i16>
§paddle6_id: Option<i16>
§paddle7_id: Option<i16>
§paddle8_id: Option<i16>
Implementations§
Trait Implementations§
Source§impl<__FK> BelongsTo<&Paddle> for DBLocalTriggerBoardwhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i16>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Paddle: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Paddle> for DBLocalTriggerBoardwhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i16>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Paddle: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = paddle1_id
type ForeignKeyColumn = paddle1_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<Paddle> for DBLocalTriggerBoardwhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i16>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Paddle: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Paddle> for DBLocalTriggerBoardwhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i16>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Paddle: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = paddle1_id
type ForeignKeyColumn = paddle1_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 Display for DBLocalTriggerBoard
impl Display for DBLocalTriggerBoard
Source§impl HasTable for DBLocalTriggerBoard
impl HasTable for DBLocalTriggerBoard
Source§impl<'ident> Identifiable for &'ident DBLocalTriggerBoard
impl<'ident> Identifiable for &'ident DBLocalTriggerBoard
Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13), __DB> for DBLocalTriggerBoardwhere
(i16, Option<i16>, Option<i16>, Option<i16>, Option<i16>, f32, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13), __DB>,
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13), __DB> for DBLocalTriggerBoardwhere
(i16, Option<i16>, Option<i16>, Option<i16>, Option<i16>, f32, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>, Option<i16>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13), __DB>,
Source§impl<__DB: Backend> Selectable<__DB> for DBLocalTriggerBoard
impl<__DB: Backend> Selectable<__DB> for DBLocalTriggerBoard
Source§type SelectExpression = (board_id, dsi, j, rat, ltb_id, cable_len, paddle1_id, paddle2_id, paddle3_id, paddle4_id, paddle5_id, paddle6_id, paddle7_id, paddle8_id)
type SelectExpression = (board_id, dsi, j, rat, ltb_id, cable_len, paddle1_id, paddle2_id, paddle3_id, paddle4_id, paddle5_id, paddle6_id, paddle7_id, paddle8_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
Auto Trait Implementations§
impl Freeze for DBLocalTriggerBoard
impl RefUnwindSafe for DBLocalTriggerBoard
impl Send for DBLocalTriggerBoard
impl Sync for DBLocalTriggerBoard
impl Unpin for DBLocalTriggerBoard
impl UnwindSafe for DBLocalTriggerBoard
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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> Pointable for T
impl<T> Pointable for T
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.