pub enum Time {
Days(u64),
Hours(u64),
Minutes(u64),
Seconds(u64),
Milliseconds(u64),
Microseconds(u64),
Nanoseconds(u64),
}
Expand description
Whenever durations need to be specified, e.g. for a timeout
parameter,
the duration must specify the unit, like 2d
for 2 days.
https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units
Variants§
Days(u64)
Hours(u64)
Minutes(u64)
Seconds(u64)
Milliseconds(u64)
Microseconds(u64)
Nanoseconds(u64)
Trait Implementations§
impl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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