pub struct ScanEvent {
pub start_time: f64,
pub injection_time: f32,
pub scan_windows: Vec<ScanWindow>,
pub instrument_configuration_id: u32,
pub params: Option<Box<ParamList>>,
pub spectrum_reference: Option<Box<str>>,
}Expand description
Describes a single scan event. Unless additional post-processing is done, there is usually only one event per spectrum.
Fields§
§start_time: f64When did the scan start acquisition relative to the run start, in minutes
injection_time: f32The time spent filling the ion trapping device, in milliseconds
scan_windows: Vec<ScanWindow>The windows of the primary axis covered by this event
instrument_configuration_id: u32The identifier of the InstrumentConfiguration associated
with the event
params: Option<Box<ParamList>>Lazily initialized ParamList
spectrum_reference: Option<Box<str>>The identifier for another spectrum in the current run or another file.
Implementations§
Source§impl ScanEvent
impl ScanEvent
pub fn new( start_time: f64, injection_time: f32, scan_windows: Vec<ScanWindow>, instrument_configuration_id: u32, params: Option<Box<ParamList>>, ) -> Self
Sourcepub fn filter_string(&self) -> Option<Cow<'_, str>>
pub fn filter_string(&self) -> Option<Cow<'_, str>>
Find a parameter by its CURIE
Sourcepub fn resolution(&self) -> Option<ValueRef<'_>>
pub fn resolution(&self) -> Option<ValueRef<'_>>
Find a parameter by its CURIE
Sourcepub fn scan_configuration(&self) -> Option<ValueRef<'_>>
pub fn scan_configuration(&self) -> Option<ValueRef<'_>>
Find a parameter by its CURIE
Trait Implementations§
Source§impl IonMobilityMeasure for ScanEvent
impl IonMobilityMeasure for ScanEvent
Source§fn ion_mobility(&self) -> Option<f64>
fn ion_mobility(&self) -> Option<f64>
Get the ion mobility coordinate, if one is available.
Source§fn has_ion_mobility(&self) -> bool
fn has_ion_mobility(&self) -> bool
Test if an ion mobility value is present
Source§impl ParamDescribed for ScanEvent
impl ParamDescribed for ScanEvent
Source§fn params_mut(&mut self) -> &mut ParamList
fn params_mut(&mut self) -> &mut ParamList
Obtain an mutable slice over the encapsulated
Param listSource§fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)
fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)
Add all parameters from an iterator of
Param to the entitySource§fn get_param_by_name(&self, name: &str) -> Option<&Param>
fn get_param_by_name(&self, name: &str) -> Option<&Param>
Find the first
Param whose name matches nameimpl StructuralPartialEq for ScanEvent
Auto Trait Implementations§
impl Freeze for ScanEvent
impl RefUnwindSafe for ScanEvent
impl Send for ScanEvent
impl Sync for ScanEvent
impl Unpin for ScanEvent
impl UnsafeUnpin for ScanEvent
impl UnwindSafe for ScanEvent
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