pub struct RecipeDraft {
pub family_id: Option<String>,
pub title: String,
pub description: Option<String>,
pub servings: u32,
pub ingredients: Vec<RecipeIngredient>,
pub steps: Vec<String>,
pub categories: Vec<String>,
pub tags: Vec<String>,
pub source: Option<String>,
pub notes: Option<String>,
pub dietary_information: Vec<String>,
pub allergens: Option<Vec<String>>,
}Expand description
Input accepted when creating or replacing a recipe.
Fields§
§family_id: Option<String>§title: String§description: Option<String>§servings: u32§ingredients: Vec<RecipeIngredient>§steps: Vec<String>Ordered preparation instructions; vector order is the stable step order.
categories: Vec<String>§source: Option<String>§notes: Option<String>§dietary_information: Vec<String>§allergens: Option<Vec<String>>None means unknown; Some([]) means explicitly checked and no allergens.
Trait Implementations§
Source§impl Clone for RecipeDraft
impl Clone for RecipeDraft
Source§impl Debug for RecipeDraft
impl Debug for RecipeDraft
Source§impl<'de> Deserialize<'de> for RecipeDraft
impl<'de> Deserialize<'de> for RecipeDraft
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 RecipeDraft
impl PartialEq for RecipeDraft
Source§impl Serialize for RecipeDraft
impl Serialize for RecipeDraft
impl StructuralPartialEq for RecipeDraft
Auto Trait Implementations§
impl Freeze for RecipeDraft
impl RefUnwindSafe for RecipeDraft
impl Send for RecipeDraft
impl Sync for RecipeDraft
impl Unpin for RecipeDraft
impl UnsafeUnpin for RecipeDraft
impl UnwindSafe for RecipeDraft
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