pub enum RecipeCategory {
Easy,
Medium,
Advanced,
Pro,
}
Expand description
Categories of recipes.
§Description
Recipes are categorized using the degree of difficult of the preparation process of the recipe.
- Category RecipeCategory::Easy should include recipes that need no special equipment nor uncommon spirits.
- Category RecipeCategory::Medium should include recipes that need basic equipment but use common spirits.
- Category RecipeCategory::Advanced should include recipes that need specific equipment and might use uncommon spirits.
- Cageory RecipeCategory::Pro should include advanced recipes that need complicated preparation techniques or very special equipment.
Variants§
Trait Implementations§
Source§impl Clone for RecipeCategory
impl Clone for RecipeCategory
Source§fn clone(&self) -> RecipeCategory
fn clone(&self) -> RecipeCategory
Returns a copy 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 RecipeCategory
impl Debug for RecipeCategory
Source§impl<'de> Deserialize<'de> for RecipeCategory
impl<'de> Deserialize<'de> for RecipeCategory
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 Display for RecipeCategory
impl Display for RecipeCategory
Source§impl From<RecipeCategory> for String
impl From<RecipeCategory> for String
Source§fn from(val: RecipeCategory) -> Self
fn from(val: RecipeCategory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecipeCategory
impl PartialEq for RecipeCategory
Source§impl Serialize for RecipeCategory
impl Serialize for RecipeCategory
Source§impl<'__s> ToSchema<'__s> for RecipeCategory
impl<'__s> ToSchema<'__s> for RecipeCategory
Source§impl TryFrom<&str> for RecipeCategory
impl TryFrom<&str> for RecipeCategory
impl StructuralPartialEq for RecipeCategory
Auto Trait Implementations§
impl Freeze for RecipeCategory
impl RefUnwindSafe for RecipeCategory
impl Send for RecipeCategory
impl Sync for RecipeCategory
impl Unpin for RecipeCategory
impl UnwindSafe for RecipeCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more