diff --git a/Cargo.toml b/Cargo.toml index 4c632d8..68fc759 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "influx-writer" -version = "0.10.0" +version = "0.10.1" authors = ["Jonathan Strong "] edition = "2018" diff --git a/src/lib.rs b/src/lib.rs index 9282403..4110637 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -140,6 +140,13 @@ macro_rules! measure { (@ea u, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_field($k, $crate::OwnedValue::Uuid($v)) }; (@ea b, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_field($k, $crate::OwnedValue::Boolean(bool::from($v))) }; + (@ea D, $meas:ident, $k:expr, $v:expr) => { + match $v { + Some(v) => { $meas = $meas.add_field($k, $crate::OwnedValue::D128(v)) } + None => {} + } + }; + (@as_expr $e:expr) => {$e}; (@count_tags) => {0usize};