Skip to main content

ionic/ion/
filter_summary.rs

1use serde::{Deserialize, Serialize};
2
3#[non_exhaustive]
4#[derive(Debug, Clone, Serialize, Deserialize, Copy)]
5pub struct SpectrumSummary {
6    pub rt: f64,
7    pub rt_unit: u8,
8    pub base_peak_mz: f64,
9    pub selected_ion_mz: f64,
10    pub base_peak_int: f64,
11    pub total_ion_current: f64,
12    pub ms_level: u8,
13    pub polarity: u8,
14    pub position_x: u32,
15    pub position_y: u32,
16    pub position_z: u32,
17}
18
19#[non_exhaustive]
20#[derive(Debug, Clone, Serialize, Deserialize, Copy)]
21pub struct ChromatogramSummary {
22    pub lowest_mz: f64,
23    pub highest_mz: f64,
24    pub lowest_wavelength: f64,
25    pub highest_wavelength: f64,
26    pub lowest_ion_mobility: f64,
27    pub highest_ion_mobility: f64,
28    pub polarity: u8,
29}