#[non_exhaustive]pub struct ChromatogramRecord {
pub index: usize,
pub id: String,
pub chromatogram_type: Option<CvTerm>,
pub precursor_mz: Option<f64>,
pub product_mz: Option<f64>,
pub time_sec: Vec<f32>,
pub intensity: Vec<f32>,
}Expand description
A chromatogram trace (TIC, BPC, SRM/MRM transition).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: usizeZero-based position in the source’s chromatogram list. The mzML
writer numbers written chromatograms 0, 1, 2, … for index=.
id: StringmzML chromatogram id.
chromatogram_type: Option<CvTerm>e.g. "total ion current chromatogram", "basepeak chromatogram",
"selected reaction monitoring chromatogram". The writer emits
MS:1000235 (total ion current chromatogram) when None.
precursor_mz: Option<f64>Precursor (Q1) m/z for SRM/MRM traces.
product_mz: Option<f64>Product (Q3) m/z for SRM/MRM traces.
time_sec: Vec<f32>Retention time in seconds.
intensity: Vec<f32>Intensities, parallel to time_sec.
Implementations§
Source§impl ChromatogramRecord
impl ChromatogramRecord
Sourcepub fn with_index(self, value: usize) -> Self
pub fn with_index(self, value: usize) -> Self
Set index.
Sourcepub fn with_chromatogram_type(self, value: impl Into<Option<CvTerm>>) -> Self
pub fn with_chromatogram_type(self, value: impl Into<Option<CvTerm>>) -> Self
Set chromatogram_type. Accepts a value or an Option.
Sourcepub fn with_precursor_mz(self, value: impl Into<Option<f64>>) -> Self
pub fn with_precursor_mz(self, value: impl Into<Option<f64>>) -> Self
Set precursor_mz. Accepts a value or an Option.
Sourcepub fn with_product_mz(self, value: impl Into<Option<f64>>) -> Self
pub fn with_product_mz(self, value: impl Into<Option<f64>>) -> Self
Set product_mz. Accepts a value or an Option.
Sourcepub fn with_time_sec(self, value: Vec<f32>) -> Self
pub fn with_time_sec(self, value: Vec<f32>) -> Self
Set time_sec.
Sourcepub fn with_intensity(self, value: Vec<f32>) -> Self
pub fn with_intensity(self, value: Vec<f32>) -> Self
Set intensity.
Trait Implementations§
Source§impl Clone for ChromatogramRecord
impl Clone for ChromatogramRecord
Source§impl Debug for ChromatogramRecord
impl Debug for ChromatogramRecord
Source§impl<'de> Deserialize<'de> for ChromatogramRecord
impl<'de> Deserialize<'de> for ChromatogramRecord
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 PartialEq for ChromatogramRecord
impl PartialEq for ChromatogramRecord
Source§impl Serialize for ChromatogramRecord
impl Serialize for ChromatogramRecord
impl StructuralPartialEq for ChromatogramRecord
Auto Trait Implementations§
impl Freeze for ChromatogramRecord
impl RefUnwindSafe for ChromatogramRecord
impl Send for ChromatogramRecord
impl Sync for ChromatogramRecord
impl Unpin for ChromatogramRecord
impl UnsafeUnpin for ChromatogramRecord
impl UnwindSafe for ChromatogramRecord
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