This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement influx client extension (#2262)
Implement an influx client extenstion that allows for direct serialization to a struct instead of needing to traverse the result and build it by hand. Ex: ```rust struct MgsFsTime { time: u64, } let xs: Vec<MgsFsTime> = client .query_into( format!( r#" SELECT mgs_fs,is_mgs_fs FROM target WHERE mgs_fs='{}' AND is_mgs_fs=true ORDER BY time ASC LIMIT 2"#, fs_names ) .as_str(), Some(Precision::Nanoseconds), ) .await? .unwrap_or_default(); ``` Signed-off-by: Joe Grund <jgrund@whamcloud.io>
- Loading branch information