pub struct ScanHeader {Show 21 fields
pub index: u64,
pub scan_number: u64,
pub native_id: Option<String>,
pub ms_level: u32,
pub rt_s: Option<f64>,
pub polarity: String,
pub centroided: bool,
pub precursor_mz: Option<f64>,
pub precursor_charge: Option<i32>,
pub precursor_intensity: Option<f64>,
pub isolation_window_mz: Option<[f64; 2]>,
pub activation: Option<String>,
pub collision_energy: Option<f64>,
pub inverse_reduced_mobility: Option<f64>,
pub scan_filter: Option<String>,
pub scan_window_mz: Option<[f64; 2]>,
pub total_ion_current: Option<f64>,
pub base_peak_mz: Option<f64>,
pub base_peak_intensity: Option<f64>,
pub point_count: Option<u64>,
pub extra: BTreeMap<String, Value>,
}Expand description
Everything about one spectrum except its peaks.
Fields§
§index: u64Zero-based spectrum index within its run (spectrum --spectrum).
scan_number: u64Scan number as the instrument counts it (spectrum --scan).
native_id: Option<String>The spectrum’s identifier in its file (mzML id), when it has one.
ms_level: u32MS level: 1 for a full scan, 2 for a fragment (MS/MS) scan, and so on.
rt_s: Option<f64>Retention time in seconds; null when the file states none for this scan (such a scan never matches a retention-time filter).
polarity: Stringpositive, negative or unknown.
centroided: boolTrue when the stored peaks are centroids.
precursor_mz: Option<f64>m/z of the isolated precursor ion (MS2 and above).
precursor_charge: Option<i32>Charge state of the precursor, when the instrument determined it.
precursor_intensity: Option<f64>Intensity of the selected precursor ion, when recorded.
isolation_window_mz: Option<[f64; 2]>Precursor isolation window [lower, upper] in m/z.
activation: Option<String>Dissociation method (CID, HCD, ETD, …), upper case.
collision_energy: Option<f64>Collision energy as recorded.
inverse_reduced_mobility: Option<f64>Ion mobility 1/K0 in V·s/cm², when the scan or precursor has one.
scan_filter: Option<String>Instrument scan filter or scan description (e.g. Thermo FTMS + p ESI d Full ms2 …).
scan_window_mz: Option<[f64; 2]>Scan (acquisition) window [lower, upper] in m/z.
total_ion_current: Option<f64>Total ion current as the file records it for the scan (an index or header value; not recomputed from the peaks). Absent when the file keeps none.
base_peak_mz: Option<f64>Base-peak m/z as the file records it for the scan.
base_peak_intensity: Option<f64>Base-peak intensity as the file records it for the scan.
point_count: Option<u64>Number of stored points (peaks or profile samples), when the header records it.
extra: BTreeMap<String, Value>Format-specific scan metadata in the reader’s documented vocabulary.
Trait Implementations§
Source§impl Clone for ScanHeader
impl Clone for ScanHeader
Source§impl Debug for ScanHeader
impl Debug for ScanHeader
Source§impl Default for ScanHeader
impl Default for ScanHeader
Source§impl<'de> Deserialize<'de> for ScanHeader
impl<'de> Deserialize<'de> for ScanHeader
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>,
Source§impl From<Spectrum> for ScanHeader
impl From<Spectrum> for ScanHeader
Source§impl JsonSchema for ScanHeader
impl JsonSchema for ScanHeader
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ScanHeader
impl PartialEq for ScanHeader
Source§impl Serialize for ScanHeader
impl Serialize for ScanHeader
impl StructuralPartialEq for ScanHeader
Auto Trait Implementations§
impl Freeze for ScanHeader
impl RefUnwindSafe for ScanHeader
impl Send for ScanHeader
impl Sync for ScanHeader
impl Unpin for ScanHeader
impl UnsafeUnpin for ScanHeader
impl UnwindSafe for ScanHeader
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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