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 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more