pub struct SourceFile {
pub name: String,
pub location: String,
pub id: String,
pub file_format: Option<Param>,
pub id_format: Option<Param>,
pub params: ParamList,
}Expand description
Description of a source file, including location and type.
This is usually another mass spectrometry data file. For some vendor raw formats that are directories, there can be many files. See https://peptideatlas.org/tmp/mzML1.1.0.html#sourceFile.
Fields§
§name: StringThe name of the source file without any path or location information
location: StringThe URI-formatted location where the file was retrieved.
id: StringA unique identifier for this source file
file_format: Option<Param>The MassSpectrometerFileFormatTerm-defined parameter for this file
id_format: Option<Param>The NativeSpectrumIdentifierFormatTerm-defined parameter for this file
params: ParamListThe rest of the parameters for this file.
Implementations§
Source§impl SourceFile
impl SourceFile
Sourcepub fn native_id_format(&self) -> Option<NativeSpectrumIDFormat>
pub fn native_id_format(&self) -> Option<NativeSpectrumIDFormat>
Convert SourceFile::id_format into a NativeSpectrumIDFormat carrying its own
parser machinery, if such a term mapping exists
Trait Implementations§
Source§impl Clone for SourceFile
impl Clone for SourceFile
Source§fn clone(&self) -> SourceFile
fn clone(&self) -> SourceFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceFile
impl Debug for SourceFile
Source§impl Default for SourceFile
impl Default for SourceFile
Source§fn default() -> SourceFile
fn default() -> SourceFile
Returns the “default value” for a type. Read more
impl Eq for SourceFile
Source§impl ParamDescribed for SourceFile
impl ParamDescribed for SourceFile
Source§fn params_mut(&mut self) -> &mut ParamList
fn params_mut(&mut self) -> &mut ParamList
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 SourceFile
impl PartialEq for SourceFile
impl StructuralPartialEq for SourceFile
Auto Trait Implementations§
impl Freeze for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnsafeUnpin for SourceFile
impl UnwindSafe for SourceFile
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