pub struct TimeParam {
pub created_start: Option<DateTimeUtc>,
pub created_end: Option<DateTimeUtc>,
pub updated_start: Option<DateTimeUtc>,
pub updated_end: Option<DateTimeUtc>,
}Available on crate features
api and seaorm only.Expand description
Created/updated time range filters, consumed by
Condition::add_time.
All values are UTC datetimes, the same type the entity_timestamp
macro stores, and deserialize from RFC 3339 strings like
2024-01-01T00:00:00Z (a timezone offset is required; non-UTC offsets
are converted to UTC).
Fields§
§created_start: Option<DateTimeUtc>created_at >= created_start filter.
created_end: Option<DateTimeUtc>created_at <= created_end filter.
updated_start: Option<DateTimeUtc>updated_at >= updated_start filter.
updated_end: Option<DateTimeUtc>updated_at <= updated_end filter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeParam
impl<'de> Deserialize<'de> for TimeParam
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<'v_a> ValidateArgs<'v_a> for TimeParam
impl<'v_a> ValidateArgs<'v_a> for TimeParam
Auto Trait Implementations§
impl Freeze for TimeParam
impl RefUnwindSafe for TimeParam
impl Send for TimeParam
impl Sync for TimeParam
impl Unpin for TimeParam
impl UnsafeUnpin for TimeParam
impl UnwindSafe for TimeParam
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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