pub struct SpectrumPreview {
pub run: u32,
pub index: u64,
pub scan_number: u64,
pub ms_level: u32,
pub rt_s: Option<f64>,
pub style: String,
pub point_count: u64,
pub x_axis: XAxis,
pub max_intensity: Option<f64>,
pub precursor_mz: Option<f64>,
}Expand description
Details of a mass-spectrum preview.
Fields§
§run: u32Run index.
index: u64Zero-based spectrum index.
scan_number: u64Scan number as the instrument counts it.
ms_level: u32MS level (1 = full scan, 2 = fragment scan, …).
rt_s: Option<f64>Retention time in seconds; null when the file states none.
style: Stringsticks (centroided) or profile (a line through the points).
point_count: u64Points in the spectrum.
x_axis: XAxism/z range of the x axis.
max_intensity: Option<f64>Largest intensity.
precursor_mz: Option<f64>Precursor m/z of a fragment (MS2+) scan.
Trait Implementations§
Source§impl Clone for SpectrumPreview
impl Clone for SpectrumPreview
Source§impl Debug for SpectrumPreview
impl Debug for SpectrumPreview
Source§impl Default for SpectrumPreview
impl Default for SpectrumPreview
Source§impl<'de> Deserialize<'de> for SpectrumPreview
impl<'de> Deserialize<'de> for SpectrumPreview
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 JsonSchema for SpectrumPreview
impl JsonSchema for SpectrumPreview
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SpectrumPreview
impl RefUnwindSafe for SpectrumPreview
impl Send for SpectrumPreview
impl Sync for SpectrumPreview
impl Unpin for SpectrumPreview
impl UnsafeUnpin for SpectrumPreview
impl UnwindSafe for SpectrumPreview
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
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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