pub struct Software {
pub id: String,
pub version: String,
pub params: ParamList,
}Expand description
A piece of software that was associated with the acquisition, transformation or otherwise processing of mass spectrometry data.
Fields§
§id: StringA unique identifier for the software within processing metadata
version: StringA string denoting a particular software version, but does no guarantee is given for its format
params: ParamListAny associated vocabulary terms, including actual software name and type
Implementations§
Source§impl Software
impl Software
pub fn new(id: String, version: String, params: ParamList) -> Self
Sourcepub fn find_software_term(&self) -> Option<SoftwareTerm>
pub fn find_software_term(&self) -> Option<SoftwareTerm>
Find the term defining the software
Sourcepub fn is_analysis(&self) -> bool
pub fn is_analysis(&self) -> bool
Is this software for analysis?
Sourcepub fn is_data_processing(&self) -> bool
pub fn is_data_processing(&self) -> bool
Is this software for data processing?
Sourcepub fn is_acquisition(&self) -> bool
pub fn is_acquisition(&self) -> bool
Is this software for data acquisition?
Sourcepub fn find_unique_id<'a>(
id_stem: &str,
softwares: impl IntoIterator<Item = &'a Self>,
) -> String
pub fn find_unique_id<'a>( id_stem: &str, softwares: impl IntoIterator<Item = &'a Self>, ) -> String
Find a unique identifier from an iterator over software IDs
Trait Implementations§
impl Eq for Software
Source§impl ParamDescribed for Software
impl ParamDescribed for Software
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 nameimpl StructuralPartialEq for Software
Auto Trait Implementations§
impl Freeze for Software
impl RefUnwindSafe for Software
impl Send for Software
impl Sync for Software
impl Unpin for Software
impl UnsafeUnpin for Software
impl UnwindSafe for Software
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