Struct rust_sbml::Species [−][src]
pub struct Species { pub id: String, pub name: Option<String>, pub meta_id: Option<String>, pub sbo_term: Option<String>, pub compartment: String, pub initial_concentration: Option<f64>, pub initial_amount: Option<f64>, pub substance_units: Option<UnitSIdRef>, pub has_only_substance_units: bool, pub boundary_condition: bool, pub constant: bool, pub conversion_factor: Option<String>, }
A species in SBML refers to a pool of entities that
⁻ are considered indistinguishable from each other for the purposes of the model;
- may participate in reactions;
- are located in a specific compartment.
Example
use quick_xml::de::from_str; use rust_sbml::Species; let species: Vec<Species> = from_str( "<species id='Glucose' compartment='cell' initialConcentration='4' hasOnlySubstanceUnits='false' boundaryCondition='false' constant='false'/>" ) .unwrap(); assert_eq!(species[0].id, "Glucose"); assert_eq!(species[0].compartment, "cell"); assert_eq!(species[0].initial_concentration.unwrap() as u8, 4); assert!(!species[0].constant); assert!(!species[0].boundary_condition); assert!(!species[0].has_only_substance_units);
Fields
id: String
name: Option<String>
meta_id: Option<String>
sbo_term: Option<String>
compartment: String
initial_concentration: Option<f64>
initial_amount: Option<f64>
substance_units: Option<UnitSIdRef>
has_only_substance_units: bool
boundary_condition: bool
constant: bool
conversion_factor: Option<String>
Trait Implementations
impl<'de> Deserialize<'de> for Species
[src]
impl<'de> Deserialize<'de> for Species
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PyClass for Species
[src]
impl PyClass for Species
[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 Species
[src]
impl PyClassAlloc for Species
[src]impl PyClassSend for Species
[src]
impl PyClassSend for Species
[src]type ThreadChecker = ThreadCheckerStub<Species>
impl PyProtoMethods for Species
[src]
impl PyProtoMethods for Species
[src]fn for_each_proto_slot<Visitor: FnMut(PyType_Slot)>(visitor: Visitor)
[src]
fn get_buffer() -> Option<&'static PyBufferProcs>
[src]
impl PyTypeInfo for Species
[src]
impl PyTypeInfo for Species
[src]type Type = Species
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 Species
[src]
impl StructuralPartialEq for Species
[src]Auto Trait Implementations
impl RefUnwindSafe for Species
impl RefUnwindSafe for Species
impl UnwindSafe for Species
impl UnwindSafe for Species
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]