Struct primitives::analytics::query::Time
source · pub struct Time {
pub timeframe: Timeframe,
pub start: DateHour<Utc>,
pub end: Option<DateHour<Utc>>,
}
Fields
timeframe: Timeframe
Default: Timeframe::Day
.
start: DateHour<Utc>
Default value: DateHour::now
- self.timeframe
For this query parameter you can use either:
- a string with RFC 3339 and ISO 8601 format (see
chrono::DateTime::parse_from_rfc3339
) - a timestamp in milliseconds
Note:
DateHour
rules should be uphold, this means that passed values should always be rounded to hours And it should not contain minutes, seconds or nanoseconds
end: Option<DateHour<Utc>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Time
impl<'de> Deserialize<'de> for Time
sourcefn 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
impl Eq for Time
impl StructuralEq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more