pub enum IngCategory {
Spirit,
Bitter,
SoftDrink,
Garnish,
Other,
}
Expand description
Types of ingredients of teh Cocktail
data base.
Variants§
Spirit
Spirit ingredients, such as rum, liquors and so.
Bitter
Bitter ingredients, such as Angostura.
SoftDrink
Soft-drink ingredients, such as soda water, Fanta, Coke, etc.
Garnish
Garnish ingredients, such a lemon’s peel.
Other
Category for ingredients whose type does not match any of the other types.
Implementations§
Trait Implementations§
Source§impl Clone for IngCategory
impl Clone for IngCategory
Source§fn clone(&self) -> IngCategory
fn clone(&self) -> IngCategory
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 IngCategory
impl Debug for IngCategory
Source§impl<'de> Deserialize<'de> for IngCategory
impl<'de> Deserialize<'de> for IngCategory
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 IngCategory
impl Display for IngCategory
Source§impl PartialEq for IngCategory
impl PartialEq for IngCategory
Source§impl Serialize for IngCategory
impl Serialize for IngCategory
Source§impl<'__s> ToSchema<'__s> for IngCategory
impl<'__s> ToSchema<'__s> for IngCategory
Source§impl TryFrom<&str> for IngCategory
impl TryFrom<&str> for IngCategory
Source§impl TryFrom<String> for IngCategory
impl TryFrom<String> for IngCategory
impl Copy for IngCategory
impl StructuralPartialEq for IngCategory
Auto Trait Implementations§
impl Freeze for IngCategory
impl RefUnwindSafe for IngCategory
impl Send for IngCategory
impl Sync for IngCategory
impl Unpin for IngCategory
impl UnwindSafe for IngCategory
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