[−][src]Struct rust_sbml::Objective
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 Clone for Objective
[src]
impl Debug for Objective
[src]
impl Default 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 PartialEq<Objective> for Objective
[src]
impl Serialize for Objective
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Objective
[src]
Auto Trait Implementations
impl RefUnwindSafe for Objective
impl Send for Objective
impl Sync for Objective
impl Unpin for Objective
impl UnwindSafe for Objective
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,