Struct mzdata::io::mzml::FileMetadataBuilder
source · pub struct FileMetadataBuilder<'a> {
pub file_description: FileDescription,
pub instrument_configurations: Vec<InstrumentConfiguration>,
pub softwares: Vec<Software>,
pub data_processings: Vec<DataProcessing>,
pub reference_param_groups: HashMap<String, Vec<Param>>,
pub last_group: String,
pub run_id: Option<String>,
pub default_instrument_config: Option<u32>,
pub default_source_file: Option<String>,
pub start_timestamp: Option<DateTime<FixedOffset>>,
pub num_spectra: Option<u64>,
pub default_data_processing: Option<String>,
/* private fields */
}
Expand description
A SAX-style parser for building up the metadata section prior to the <run>
element
of an mzML file.
Fields§
§file_description: FileDescription
§instrument_configurations: Vec<InstrumentConfiguration>
§softwares: Vec<Software>
§data_processings: Vec<DataProcessing>
§reference_param_groups: HashMap<String, Vec<Param>>
§last_group: String
§run_id: Option<String>
§default_instrument_config: Option<u32>
§default_source_file: Option<String>
§start_timestamp: Option<DateTime<FixedOffset>>
§num_spectra: Option<u64>
§default_data_processing: Option<String>
Implementations§
source§impl<'a> FileMetadataBuilder<'a>
impl<'a> FileMetadataBuilder<'a>
pub fn start_element( &mut self, event: &BytesStart<'_>, state: MzMLParserState ) -> Result<MzMLParserState, MzMLParserError>
pub fn fill_param_into(&mut self, param: Param, state: MzMLParserState)
pub fn empty_element( &mut self, event: &BytesStart<'_>, state: MzMLParserState, reader_position: usize ) -> Result<MzMLParserState, MzMLParserError>
pub fn end_element( &mut self, event: &BytesEnd<'_>, state: MzMLParserState ) -> Result<MzMLParserState, MzMLParserError>
pub fn text( &mut self, _event: &BytesText<'_>, state: MzMLParserState ) -> Result<MzMLParserState, MzMLParserError>
Trait Implementations§
source§impl<'a> CVParamParse for FileMetadataBuilder<'a>
impl<'a> CVParamParse for FileMetadataBuilder<'a>
fn handle_param_borrowed<'inner, 'outer: 'inner + 'event, 'event: 'inner>( event: &'event BytesStart<'event>, reader_position: usize, state: MzMLParserState ) -> Result<ParamCow<'inner>, MzMLParserError>
fn handle_param( event: &BytesStart<'_>, reader_position: usize, state: MzMLParserState ) -> Result<Param, MzMLParserError>
source§impl<'a> Debug for FileMetadataBuilder<'a>
impl<'a> Debug for FileMetadataBuilder<'a>
source§impl<'a> Default for FileMetadataBuilder<'a>
impl<'a> Default for FileMetadataBuilder<'a>
source§fn default() -> FileMetadataBuilder<'a>
fn default() -> FileMetadataBuilder<'a>
Returns the “default value” for a type. Read more
source§impl<'a> XMLParseBase for FileMetadataBuilder<'a>
impl<'a> XMLParseBase for FileMetadataBuilder<'a>
fn handle_xml_error( &self, error: Error, state: MzMLParserState ) -> MzMLParserError
Auto Trait Implementations§
impl<'a> Freeze for FileMetadataBuilder<'a>
impl<'a> RefUnwindSafe for FileMetadataBuilder<'a>
impl<'a> Send for FileMetadataBuilder<'a>
impl<'a> Sync for FileMetadataBuilder<'a>
impl<'a> Unpin for FileMetadataBuilder<'a>
impl<'a> !UnwindSafe for FileMetadataBuilder<'a>
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> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.