pub struct ProductQuery {
pub kind: Option<String>,
pub before: Option<OffsetDateTime>,
pub after: Option<OffsetDateTime>,
}Expand description
A query for searching for known products
Fields§
§kind: Option<String>An optional filter to restrict the kind of product by
before: Option<OffsetDateTime>An optional filter to select products with delivery windows on or before this value
after: Option<OffsetDateTime>An optional filter to select products with delivery windows on or after this value
Trait Implementations§
Source§impl ComposeSchema for ProductQuery
impl ComposeSchema for ProductQuery
Source§impl Debug for ProductQuery
impl Debug for ProductQuery
Source§impl<'de> Deserialize<'de> for ProductQuery
impl<'de> Deserialize<'de> for ProductQuery
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 IntoParams for ProductQuery
impl IntoParams for ProductQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Source§impl Serialize for ProductQuery
impl Serialize for ProductQuery
Auto Trait Implementations§
impl Freeze for ProductQuery
impl RefUnwindSafe for ProductQuery
impl Send for ProductQuery
impl Sync for ProductQuery
impl Unpin for ProductQuery
impl UnwindSafe for ProductQuery
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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