pub struct RecipeComponents {
pub text: String,
pub metadata: String,
pub name: String,
}Expand description
Components extracted from a recipe source. All fields can be empty strings if the data is not available.
Fields§
§text: StringRecipe text containing ingredients and instructions
metadata: StringYAML-formatted metadata (without — delimiters)
name: StringRecipe name/title (always single-line)
Trait Implementations§
Source§impl Clone for RecipeComponents
impl Clone for RecipeComponents
Source§fn clone(&self) -> RecipeComponents
fn clone(&self) -> RecipeComponents
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 RecipeComponents
impl Debug for RecipeComponents
Source§impl Default for RecipeComponents
impl Default for RecipeComponents
Source§fn default() -> RecipeComponents
fn default() -> RecipeComponents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecipeComponents
impl RefUnwindSafe for RecipeComponents
impl Send for RecipeComponents
impl Sync for RecipeComponents
impl Unpin for RecipeComponents
impl UnsafeUnpin for RecipeComponents
impl UnwindSafe for RecipeComponents
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