Struct rs_es::units::Duration [] [src]

pub struct Duration {
    // some fields omitted

A time-period unit, will be formatted into the ElasticSearch standard format


use rs_es::units::{Duration, DurationUnit};

assert_eq!("100d", Duration::new(100, DurationUnit::Day).to_string());

TODO - implement Deserialize correctly


impl Duration

Trait Implementations

impl Debug for Duration

Formats the value using the given formatter.

impl ToString for Duration

Converts the given value to a String. Read more