pub struct RecipeQuery {
pub name: Option<String>,
pub tags: Option<String>,
pub rating: Option<StarRate>,
pub category: Option<RecipeCategory>,
}
Expand description
Query object for the Recipe
entity.
§Description
This is a subset of the Recipe
’s members. Any of the included members in this struct
can be used to perform
a search in the Cocktail
DB. Recipe queries are allowed using a single member or a combination of many. In that
case, the intersection set of the result sets for each individual query is returned. Notice that set could be
empty if all the result sets are disjoint.
Fields§
§name: Option<String>
§rating: Option<StarRate>
§category: Option<RecipeCategory>
Trait Implementations§
Source§impl Clone for RecipeQuery
impl Clone for RecipeQuery
Source§fn clone(&self) -> RecipeQuery
fn clone(&self) -> RecipeQuery
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 RecipeQuery
impl Debug for RecipeQuery
Source§impl<'de> Deserialize<'de> for RecipeQuery
impl<'de> Deserialize<'de> for RecipeQuery
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 RecipeQuery
impl Display for RecipeQuery
Source§impl IntoParams for RecipeQuery
impl IntoParams for RecipeQuery
Auto Trait Implementations§
impl Freeze for RecipeQuery
impl RefUnwindSafe for RecipeQuery
impl Send for RecipeQuery
impl Sync for RecipeQuery
impl Unpin for RecipeQuery
impl UnwindSafe for RecipeQuery
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