Struct rust_sbml::Objective [−][src]
pub struct Objective { pub id: String, pub metaid: Option<String>, pub sbo_term: Option<String>, pub sense: String, pub list_of_flux_objectives: ListOfFluxObjectives, }
The Flux Balance Constraints package of SBML defines extensions for the model, including the FBC Objective.
See the FBC specification for more details.
Example
use quick_xml::de::from_str; use rust_sbml::Objective; let objectives: Vec<Objective> = from_str( "<fbc:objective fbc:id=\"obj1\" fbc:type=\"maximize\"> <fbc:listOfFluxObjectives> <fbc:fluxObjective fbc:reaction=\"R101\" fbc:coefficient=\"1\"/> </fbc:listOfFluxObjectives> </fbc:objective> <fbc:objective fbc:id=\"obj2\" fbc:type=\"minimize\"> <fbc:listOfFluxObjectives> <fbc:fluxObjective fbc:reaction=\"R102\" fbc:coefficient=\"-2.5\"/> <fbc:fluxObjective fbc:reaction=\"R103\" fbc:coefficient=\"1\"/> </fbc:listOfFluxObjectives> </fbc:objective>").unwrap(); objectives.iter().any(|o| o.sense == "maximize"); objectives[1].list_of_flux_objectives.flux_objectives.iter().any(|r| r.reaction.to_owned().unwrap() == "R103");
Fields
id: String
metaid: Option<String>
sbo_term: Option<String>
sense: String
list_of_flux_objectives: ListOfFluxObjectives
Trait Implementations
impl<'de> Deserialize<'de> for Objective
[src]
impl<'de> Deserialize<'de> for Objective
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Objective
[src]
impl StructuralPartialEq for Objective
[src]Auto Trait Implementations
impl RefUnwindSafe for Objective
impl RefUnwindSafe for Objective
impl UnwindSafe for Objective
impl UnwindSafe for Objective
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]