pub struct TrackerStrip {Show 15 fields
pub strip_id: i32,
pub layer: i32,
pub row: i32,
pub module: i32,
pub channel: i32,
pub global_pos_x_l0: f32,
pub global_pos_y_l0: f32,
pub global_pos_z_l0: f32,
pub global_pos_x_det_l0: f32,
pub global_pos_y_det_l0: f32,
pub global_pos_z_det_l0: f32,
pub principal_x: f32,
pub principal_y: f32,
pub principal_z: f32,
pub volume_id: i64,
}
Expand description
A single Tracker strip
Fields§
§strip_id: i32
§layer: i32
§row: i32
§module: i32
§channel: i32
§global_pos_x_l0: f32
§global_pos_y_l0: f32
§global_pos_z_l0: f32
§global_pos_x_det_l0: f32
§global_pos_y_det_l0: f32
§global_pos_z_det_l0: f32
§principal_x: f32
§principal_y: f32
§principal_z: f32
§volume_id: i64
Implementations§
Source§impl TrackerStrip
impl TrackerStrip
pub fn new() -> Self
pub fn get_stripid(&self) -> u32
pub fn all(conn: &mut SqliteConnection) -> Option<Vec<Self>>
Trait Implementations§
Source§impl Clone for TrackerStrip
impl Clone for TrackerStrip
Source§fn clone(&self) -> TrackerStrip
fn clone(&self) -> TrackerStrip
Returns a copy 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 TrackerStrip
impl Debug for TrackerStrip
Source§impl<'de> Deserialize<'de> for TrackerStrip
impl<'de> Deserialize<'de> for TrackerStrip
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 Display for TrackerStrip
impl Display for TrackerStrip
Source§impl PartialEq for TrackerStrip
impl PartialEq for TrackerStrip
Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14), __DB> for TrackerStrip
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14), __DB> for TrackerStrip
Source§impl<__DB: Backend> Selectable<__DB> for TrackerStrip
impl<__DB: Backend> Selectable<__DB> for TrackerStrip
Source§type SelectExpression = (strip_id, layer, row, module, channel, global_pos_x_l0, global_pos_y_l0, global_pos_z_l0, global_pos_x_det_l0, global_pos_y_det_l0, global_pos_z_det_l0, principal_x, principal_y, principal_z, volume_id)
type SelectExpression = (strip_id, layer, row, module, channel, global_pos_x_l0, global_pos_y_l0, global_pos_z_l0, global_pos_x_det_l0, global_pos_y_det_l0, global_pos_z_det_l0, principal_x, principal_y, principal_z, volume_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
Source§impl Serialize for TrackerStrip
impl Serialize for TrackerStrip
impl StructuralPartialEq for TrackerStrip
Auto Trait Implementations§
impl Freeze for TrackerStrip
impl RefUnwindSafe for TrackerStrip
impl Send for TrackerStrip
impl Sync for TrackerStrip
impl Unpin for TrackerStrip
impl UnwindSafe for TrackerStrip
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.