pub struct DSICard {
pub dsi_id: i16,
pub j1_rat_id: Option<i16>,
pub j2_rat_id: Option<i16>,
pub j3_rat_id: Option<i16>,
pub j4_rat_id: Option<i16>,
pub j5_rat_id: Option<i16>,
}
Expand description
A DSI card which is plugged into one of five slots on the MTB The DSI card provides the connection to RBs and LTBs and has a subdivision, which is called ‘j’
Fields§
§dsi_id: i16
§j1_rat_id: Option<i16>
§j2_rat_id: Option<i16>
§j3_rat_id: Option<i16>
§j4_rat_id: Option<i16>
§j5_rat_id: Option<i16>
Implementations§
Source§impl DSICard
impl DSICard
pub fn new() -> Self
Sourcepub fn has_rat(&self, r_id: u8) -> bool
pub fn has_rat(&self, r_id: u8) -> bool
True if this RAT box is plugged in to any of the j connectors on this specific DSI card
Sourcepub fn get_j(&self, r_id: u8) -> Option<u8>
pub fn get_j(&self, r_id: u8) -> Option<u8>
Get the j connetor for this specific RAT Raises ValueError if the RAT is not connected
pub fn all(conn: &mut SqliteConnection) -> Option<Vec<DSICard>>
Trait Implementations§
Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5), __DB> for DSICard
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5), __DB> for DSICard
Source§impl<__DB: Backend> Selectable<__DB> for DSICard
impl<__DB: Backend> Selectable<__DB> for DSICard
Source§type SelectExpression = (dsi_id, j1_rat_id, j2_rat_id, j3_rat_id, j4_rat_id, j5_rat_id)
type SelectExpression = (dsi_id, j1_rat_id, j2_rat_id, j3_rat_id, j4_rat_id, j5_rat_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 DSICard
impl RefUnwindSafe for DSICard
impl Send for DSICard
impl Sync for DSICard
impl Unpin for DSICard
impl UnwindSafe for DSICard
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.