pub struct RecipeIngredient {
pub name: String,
pub amount: Option<f64>,
pub unit: Option<String>,
pub preparation_note: Option<String>,
}Expand description
One structured ingredient. Unknown quantities remain None; no amount is inferred.
Fields§
§name: String§amount: Option<f64>§unit: Option<String>§preparation_note: Option<String>Trait Implementations§
Source§impl Clone for RecipeIngredient
impl Clone for RecipeIngredient
Source§impl Debug for RecipeIngredient
impl Debug for RecipeIngredient
Source§impl<'de> Deserialize<'de> for RecipeIngredient
impl<'de> Deserialize<'de> for RecipeIngredient
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
Source§impl PartialEq for RecipeIngredient
impl PartialEq for RecipeIngredient
Source§impl Serialize for RecipeIngredient
impl Serialize for RecipeIngredient
impl StructuralPartialEq for RecipeIngredient
Auto Trait Implementations§
impl Freeze for RecipeIngredient
impl RefUnwindSafe for RecipeIngredient
impl Send for RecipeIngredient
impl Sync for RecipeIngredient
impl Unpin for RecipeIngredient
impl UnsafeUnpin for RecipeIngredient
impl UnwindSafe for RecipeIngredient
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