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
impl FileDescription
pub fn new(data: RawVec<u8>) -> Self
Sourcepub fn view(&self) -> FileDescriptionT<'_>
pub fn view(&self) -> FileDescriptionT<'_>
View the underlying buffer as a FileDescriptionT
Sourcepub fn sample_id(&self) -> Option<&str>
pub fn sample_id(&self) -> Option<&str>
The sample identifier provided by the user, if one is present
Sourcepub fn sample_vial(&self) -> Option<&str>
pub fn sample_vial(&self) -> Option<&str>
The sample vial name provided by the user or sample handling system, if present
Sourcepub fn sample_comment(&self) -> Option<&str>
pub fn sample_comment(&self) -> Option<&str>
The comment describing the sample as provided by the user, if present
Sourcepub fn sample_name(&self) -> Option<&str>
pub fn sample_name(&self) -> Option<&str>
The sample name provided by the user, if one is present
Sourcepub fn source_file(&self) -> Option<&str>
pub fn source_file(&self) -> Option<&str>
The name of the RAW file being described, as it was recorded by the control software
Sourcepub fn creation_date(&self) -> Option<&str>
pub fn creation_date(&self) -> Option<&str>
The date the RAW file was created, or that the instrument run was performed
Sourcepub fn spectra_per_ms_level(&self) -> Option<Vector<'_, u32>>
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.
Sourcepub fn trailer_headers(&self) -> Option<Vector<'_, ForwardsUOffset<&str>>>
pub fn trailer_headers(&self) -> Option<Vector<'_, ForwardsUOffset<&str>>>
Trailer headers for the RAW file.