pub struct Software {
pub id: String,
pub version: String,
pub params: Vec<Param>,
}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: Vec<Param>Any associated vocabulary terms, including actual software name and type
Implementations§
Source§impl Software
impl Software
pub fn new(id: String, version: String, params: Vec<Param>) -> Software
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 Software>,
) -> String
pub fn find_unique_id<'a>( id_stem: &str, softwares: impl IntoIterator<Item = &'a Software>, ) -> String
Find a unique identifier from an iterator over software IDs
Trait Implementations§
Source§impl ParamDescribed for Software
impl ParamDescribed for Software
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 nameimpl Eq for Software
impl 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 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
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.