pub struct ActiveIngredient {
pub id: Option<i32>,
pub code: Option<String>,
pub name: String,
pub amount: Option<String>,
pub unit: Option<String>,
pub order: Option<i32>,
}Expand description
Active ingredient
Fields§
§id: Option<i32>Active ingredient ID
code: Option<String>Identification code
name: StringName
amount: Option<String>Amount
unit: Option<String>Unit
order: Option<i32>Display order
Trait Implementations§
Source§impl Clone for ActiveIngredient
impl Clone for ActiveIngredient
Source§fn clone(&self) -> ActiveIngredient
fn clone(&self) -> ActiveIngredient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActiveIngredient
impl Debug for ActiveIngredient
Source§impl<'de> Deserialize<'de> for ActiveIngredient
impl<'de> Deserialize<'de> for ActiveIngredient
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 ActiveIngredient
impl RefUnwindSafe for ActiveIngredient
impl Send for ActiveIngredient
impl Sync for ActiveIngredient
impl Unpin for ActiveIngredient
impl UnsafeUnpin for ActiveIngredient
impl UnwindSafe for ActiveIngredient
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