pub struct PredictionSet {
pub prediction_set_id: i64,
pub predictor_model: Option<String>,
pub instrument: String,
pub acquisition_type: String,
pub activation_method: String,
pub energy_unit: String,
pub collision_energy_encoding: String,
}Expand description
How the stored fragment_ions were produced (P5 prediction set). The
renderer reads this to verify the stored fragments are compatible with the
instrument it is rendering for, instead of silently rendering against a set
built for a different instrument / collision-energy encoding.
Fields§
§prediction_set_id: i64§predictor_model: Option<String>§instrument: String§acquisition_type: String§activation_method: String§energy_unit: String§collision_energy_encoding: StringHow collision energy is encoded in fragment_ions — the render-time CE
keying (resolve_fragment_ce_key) only matches the legacy
normalized_div100 encoding.
Implementations§
Source§impl PredictionSet
impl PredictionSet
Sourcepub fn legacy_bruker() -> Self
pub fn legacy_bruker() -> Self
The implicit set for pre-P5 DBs (no prediction_sets table): timsTOF
collisional activation, CE stored normalized (raw/100), eV.
Sourcepub fn assert_render_compatible(&self) -> Result<(), String>
pub fn assert_render_compatible(&self) -> Result<(), String>
Fail unless this set’s collision-energy encoding is the one the render-time CE keying assumes. Guards against rendering fragments that were stored with an encoding the current keying cannot resolve (e.g. a future Thermo set).
Trait Implementations§
Source§impl Clone for PredictionSet
impl Clone for PredictionSet
Source§fn clone(&self) -> PredictionSet
fn clone(&self) -> PredictionSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PredictionSet
impl RefUnwindSafe for PredictionSet
impl Send for PredictionSet
impl Sync for PredictionSet
impl Unpin for PredictionSet
impl UnsafeUnpin for PredictionSet
impl UnwindSafe for PredictionSet
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
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>
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>
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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.