pub struct Compartment {
pub id: String,
pub name: String,
}Expand description
Compartment metadata carried on the model.
Fields§
§id: String§name: StringImplementations§
Source§impl Compartment
impl Compartment
pub fn cytosol() -> Self
pub fn extracellular() -> Self
pub fn periplasm() -> Self
pub fn default_three() -> Vec<Compartment>
Trait Implementations§
Source§impl Clone for Compartment
impl Clone for Compartment
Source§fn clone(&self) -> Compartment
fn clone(&self) -> Compartment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Compartment
impl Debug for Compartment
Source§impl<'de> Deserialize<'de> for Compartment
impl<'de> Deserialize<'de> for Compartment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Compartment
impl RefUnwindSafe for Compartment
impl Send for Compartment
impl Sync for Compartment
impl Unpin for Compartment
impl UnsafeUnpin for Compartment
impl UnwindSafe for Compartment
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