pub struct DateTimeRangeQuery {
pub before: Option<OffsetDateTime>,
pub after: Option<OffsetDateTime>,
}Expand description
A query type for dealing with datetime ranges
This structure enables API endpoints to accept parameters for filtering results based on time ranges with optional upper and lower bounds.
Fields§
§before: Option<OffsetDateTime>The upper bound (exclusive) for the datetime range
after: Option<OffsetDateTime>The lower bound (inclusive) for the datetime range
Trait Implementations§
Source§impl ComposeSchema for DateTimeRangeQuery
impl ComposeSchema for DateTimeRangeQuery
Source§impl Debug for DateTimeRangeQuery
impl Debug for DateTimeRangeQuery
Source§impl<'de> Deserialize<'de> for DateTimeRangeQuery
impl<'de> Deserialize<'de> for DateTimeRangeQuery
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 DateTimeRangeQuery
impl IntoParams for DateTimeRangeQuery
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 DateTimeRangeQuery
impl Serialize for DateTimeRangeQuery
Auto Trait Implementations§
impl Freeze for DateTimeRangeQuery
impl RefUnwindSafe for DateTimeRangeQuery
impl Send for DateTimeRangeQuery
impl Sync for DateTimeRangeQuery
impl Unpin for DateTimeRangeQuery
impl UnwindSafe for DateTimeRangeQuery
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> 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