Struct paprika_api::api::Recipe[][src]

pub struct Recipe {
Show fields pub uid: String, pub name: String, pub ingredients: String, pub directions: String, pub description: String, pub notes: String, pub nutritional_info: String, pub servings: String, pub difficulty: String, pub prep_time: String, pub cook_time: String, pub total_time: String, pub source: String, pub source_url: Option<String>, pub image_url: Option<String>, pub photo: Option<String>, pub photo_hash: Option<String>, pub photo_large: Option<String>, pub scale: Option<String>, pub hash: String, pub categories: Vec<String>, pub rating: i32, pub in_trash: bool, pub is_pinned: bool, pub on_favorites: bool, pub on_grocery_list: bool, pub created: String, pub photo_url: Option<String>,
}

Fields

uid: Stringname: Stringingredients: Stringdirections: Stringdescription: Stringnotes: Stringnutritional_info: Stringservings: Stringdifficulty: Stringprep_time: Stringcook_time: Stringtotal_time: Stringsource: Stringsource_url: Option<String>image_url: Option<String>photo: Option<String>photo_hash: Option<String>photo_large: Option<String>scale: Option<String>hash: Stringcategories: Vec<String>rating: i32in_trash: boolis_pinned: boolon_favorites: boolon_grocery_list: boolcreated: Stringphoto_url: Option<String>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.