FileDescription

Struct FileDescription 

Source
pub struct FileDescription { /* private fields */ }
Expand description

A wrapper around the FileDescription FlatBuffer schema. It mirrors the data stored there-in.

It describes the contents of the RAW file and a small amount information about how it was created.

Implementations§

Source§

impl FileDescription

Source

pub fn new(data: RawVec<u8>) -> Self

Source

pub fn check(&self) -> bool

Check that the buffer is a valid FileDescriptionT

Source

pub fn view(&self) -> FileDescriptionT<'_>

View the underlying buffer as a FileDescriptionT

Source

pub fn sample_id(&self) -> Option<&str>

The sample identifier provided by the user, if one is present

Source

pub fn sample_vial(&self) -> Option<&str>

The sample vial name provided by the user or sample handling system, if present

Source

pub fn sample_comment(&self) -> Option<&str>

The comment describing the sample as provided by the user, if present

Source

pub fn sample_name(&self) -> Option<&str>

The sample name provided by the user, if one is present

Source

pub fn source_file(&self) -> Option<&str>

The name of the RAW file being described, as it was recorded by the control software

Source

pub fn creation_date(&self) -> Option<&str>

The date the RAW file was created, or that the instrument run was performed

Source

pub fn spectra_per_ms_level(&self) -> Option<Vector<'_, u32>>

The number of spectra at MS levels 1-10.

This returns a flatbuffers::Vector of counts where index i corresponds to the number of MS level i+1 spectra in the RAW file.

Source

pub fn trailer_headers(&self) -> Option<Vector<'_, ForwardsUOffset<&str>>>

Trailer headers for the RAW file.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.