summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMario Krehl <mario-krehl@gmx.de>2018-03-07 19:22:04 +0100
committerMario Krehl <mario-krehl@gmx.de>2018-03-07 19:22:04 +0100
commit73ac23909aa093746c861025cff30d5a59fec88a (patch)
treec83079ba52768041dd051da7e4788014a9c2198a /src
parent6bb14df68bcb2f094d91f6740bee511e5055cc9b (diff)
make the format optional, as there's no guarantee it is there (anymore); update and rebuild
Diffstat (limited to 'src')
-rw-r--r--src/api.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api.rs b/src/api.rs
index d124174..2e41aae 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -24,7 +24,7 @@ pub struct Query {
pub range: Range,
#[serde(rename = "intervalMs")] pub interval_ms: i32,
#[serde(rename = "maxDataPoints")] pub max_data_points: i32,
- pub format: String,
+ pub format: Option<String>,
pub targets: Vec<Target>,
}