pub struct Ingredient {
pub name: String,
pub id: Uuid,
pub amount: Option<Amount>,
pub unit: Option<String>,
}
Fields§
§name: String
Name of the ingredient.
id: Uuid
Uuid is currently not used.
amount: Option<Amount>
Optional Amount specifier.
unit: Option<String>
Unit this ingredient is measured in.
Trait Implementations§
Source§impl Debug for Ingredient
impl Debug for Ingredient
Source§impl<'de> Deserialize<'de> for Ingredient
impl<'de> Deserialize<'de> for Ingredient
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 Ingredient
impl RefUnwindSafe for Ingredient
impl Send for Ingredient
impl Sync for Ingredient
impl Unpin for Ingredient
impl UnwindSafe for Ingredient
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