pub struct Recipe {
pub source: String,
pub metadata: Metadata,
pub instruction: String,
}
Expand description
Includes the raw source, metadata and instructions.
Fields§
§source: String
Raw source code of the recipe that this struct has been generated from.
metadata: Metadata
Contains the metadata of the recipe. Provided in the form of Metadata.
instruction: String
Contains reduced instructions.
For every mentioning of a ingredient there is an @ in replacement. The mentioning directly links to an IngredientSpecifier.
For every mentioning of a cookware there is an # in replacement. The mentioning directly links to a String describing the cookware.
For every mentioning of a timer there is an ~ in replacement. The mentioning directly links to a Timer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recipe
impl<'de> Deserialize<'de> for Recipe
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 Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnwindSafe for Recipe
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