Struct kairosdb::query::RelativeTime
source · pub struct RelativeTime { /* private fields */ }
Expand description
JSON representation of the a relative time object
Implementations§
source§impl RelativeTime
impl RelativeTime
sourcepub fn new(value: i64, unit: TimeUnit) -> RelativeTime
pub fn new(value: i64, unit: TimeUnit) -> RelativeTime
Creates a new RelativeTime
object
Trait Implementations§
source§impl Debug for RelativeTime
impl Debug for RelativeTime
source§impl<'de> Deserialize<'de> for RelativeTime
impl<'de> Deserialize<'de> for RelativeTime
source§fn 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