Struct rust_sbml::Reaction [−][src]
pub struct Reaction { pub id: String, pub list_of_reactants: ListOfSpeciesReferences, pub list_of_products: ListOfSpeciesReferences, pub reversible: bool, pub compartment: Option<String>, pub name: Option<String>, pub sbo_term: Option<String>, pub lower_bound: Option<String>, pub upper_bound: Option<String>, }
A reaction in SBML represents any kind of process that can change the quantity of one or more species in a model. Examples of such processes can include transformation, transport, molecular interactions, and more.
TODO: implement KineticLaw
Example
use quick_xml::de::from_str; use rust_sbml::Reaction; let reactions: Reaction = from_str( "<reaction id='J1' reversible='false' fbc:lowerFluxBound='-20'> <listOfReactants> <speciesReference species='X0' stoichiometry='2' constant='true'/> </listOfReactants></reaction></listOfReactions></model>", ) .unwrap(); println!("{:?}", reactions); assert!(reactions .list_of_reactants .species_references .iter() .any(|specref| specref.species == "X0"));
Fields
id: String
list_of_reactants: ListOfSpeciesReferences
list_of_products: ListOfSpeciesReferences
reversible: bool
compartment: Option<String>
name: Option<String>
sbo_term: Option<String>
lower_bound: Option<String>
upper_bound: Option<String>
Trait Implementations
impl<'de> Deserialize<'de> for Reaction
[src]
impl<'de> Deserialize<'de> for Reaction
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PyClass for Reaction
[src]
impl PyClass for Reaction
[src]type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
type BaseNativeType = PyAny
The closest native ancestor. This is PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
. Read more
impl PyClassAlloc for Reaction
[src]
impl PyClassAlloc for Reaction
[src]impl PyClassSend for Reaction
[src]
impl PyClassSend for Reaction
[src]type ThreadChecker = ThreadCheckerStub<Reaction>
impl PyProtoMethods for Reaction
[src]
impl PyProtoMethods for Reaction
[src]fn for_each_proto_slot<Visitor: FnMut(PyType_Slot)>(visitor: Visitor)
[src]
fn get_buffer() -> Option<&'static PyBufferProcs>
[src]
impl PyTypeInfo for Reaction
[src]
impl PyTypeInfo for Reaction
[src]type Type = Reaction
Type of objects to store in PyObject struct
type BaseType = PyAny
Base class
type Layout = PyCell<Self>
Layout
type BaseLayout = PyCellBase<PyAny>
Layout of Basetype.
type Initializer = PyClassInitializer<Self>
Initializer for layout
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work
const NAME: &'static str
[src]
const MODULE: Option<&'static str>
[src]
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
[src]
pub fn is_type_of(object: &PyAny) -> bool
[src]
pub fn is_exact_type_of(object: &PyAny) -> bool
[src]
impl StructuralPartialEq for Reaction
[src]
impl StructuralPartialEq for Reaction
[src]Auto Trait Implementations
impl RefUnwindSafe for Reaction
impl RefUnwindSafe for Reaction
impl UnwindSafe for Reaction
impl UnwindSafe for Reaction
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]impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
[src]
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
[src]impl<T> PyTypeObject for T where
T: PyTypeInfo,
[src]
impl<T> PyTypeObject for T where
T: PyTypeInfo,
[src]