pub struct Recipe {
pub id: usize,
pub name: String,
pub attributes: Vec<(String, String)>,
pub instructions: Vec<String>,
pub ingredients: Vec<Ingredient>,
}Fields
id: usizename: Stringattributes: Vec<(String, String)>instructions: Vec<String>ingredients: Vec<Ingredient>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnwindSafe for Recipe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more