pub struct FileDescription {
pub contents: Vec<Param>,
pub source_files: Vec<SourceFile>,
}Expand description
A description of the file data file and its contents
Fields§
§contents: Vec<Param>Descriptors of the content spectra
source_files: Vec<SourceFile>Any source files involved in producing the current file, such as vendor raw files.
Implementations§
Source§impl FileDescription
impl FileDescription
pub fn new( contents: Vec<Param>, source_files: Vec<SourceFile>, ) -> FileDescription
Sourcepub fn has_ms1_spectra(&self) -> bool
pub fn has_ms1_spectra(&self) -> bool
Checks to see if the “MS1 spectrum” term is present in the file contents
Note: This does not actually inspect the spectra in the file, only the metadata, which may be incorrect/missing.
Sourcepub fn has_msn_spectra(&self) -> bool
pub fn has_msn_spectra(&self) -> bool
Checks to see if the “MSn spectrum” term is present in the file contents.
Note: This does not actually inspect the spectra in the file, only the metadata, which may be incorrect/missing.
pub fn has_contents(&self) -> bool
Trait Implementations§
Source§impl Clone for FileDescription
impl Clone for FileDescription
Source§fn clone(&self) -> FileDescription
fn clone(&self) -> FileDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileDescription
impl Debug for FileDescription
Source§impl Default for FileDescription
impl Default for FileDescription
Source§fn default() -> FileDescription
fn default() -> FileDescription
Returns the “default value” for a type. Read more
Source§impl ParamDescribed for FileDescription
impl ParamDescribed for FileDescription
Source§fn params_mut(&mut self) -> &mut Vec<Param>
fn params_mut(&mut self) -> &mut Vec<Param>
Obtain an mutable slice over the encapsulated
Param listSource§fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)
fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)
Add all parameters from an iterator of
Param to the entitySource§fn get_param_by_name(&self, name: &str) -> Option<&Param>
fn get_param_by_name(&self, name: &str) -> Option<&Param>
Find the first
Param whose name matches nameSource§impl PartialEq for FileDescription
impl PartialEq for FileDescription
impl Eq for FileDescription
impl StructuralPartialEq for FileDescription
Auto Trait Implementations§
impl Freeze for FileDescription
impl RefUnwindSafe for FileDescription
impl Send for FileDescription
impl Sync for FileDescription
impl Unpin for FileDescription
impl UnwindSafe for FileDescription
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.