#[non_exhaustive]pub struct TimestampRange {
pub start_timestamp: DateTime,
pub end_timestamp: DateTime,
}
Expand description
The range of timestamps for which to return fragments.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.start_timestamp: DateTime
The starting timestamp in the range of timestamps for which to return fragments.
end_timestamp: DateTime
The ending timestamp in the range of timestamps for which to return fragments.
Implementations§
source§impl TimestampRange
impl TimestampRange
sourcepub fn start_timestamp(&self) -> &DateTime
pub fn start_timestamp(&self) -> &DateTime
The starting timestamp in the range of timestamps for which to return fragments.
sourcepub fn end_timestamp(&self) -> &DateTime
pub fn end_timestamp(&self) -> &DateTime
The ending timestamp in the range of timestamps for which to return fragments.
source§impl TimestampRange
impl TimestampRange
sourcepub fn builder() -> TimestampRangeBuilder
pub fn builder() -> TimestampRangeBuilder
Creates a new builder-style object to manufacture TimestampRange
.
Trait Implementations§
source§impl Clone for TimestampRange
impl Clone for TimestampRange
source§fn clone(&self) -> TimestampRange
fn clone(&self) -> TimestampRange
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 TimestampRange
impl Debug for TimestampRange
source§impl PartialEq for TimestampRange
impl PartialEq for TimestampRange
source§fn eq(&self, other: &TimestampRange) -> bool
fn eq(&self, other: &TimestampRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimestampRange
Auto Trait Implementations§
impl RefUnwindSafe for TimestampRange
impl Send for TimestampRange
impl Sync for TimestampRange
impl Unpin for TimestampRange
impl UnwindSafe for TimestampRange
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>
Creates a shared type from an unshared type.