Skip to content

Commit 9c2f37c

Browse files
authored
Default series for when Influx doesn't return it (#67)
1 parent ac6f3c7 commit 9c2f37c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

influxdb/src/integrations/serde_integration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ impl DatabaseQueryResult {
8080
#[derive(Deserialize, Debug)]
8181
#[doc(hidden)]
8282
pub struct Return<T> {
83+
#[serde(default = "Vec::new")]
8384
pub series: Vec<Series<T>>,
8485
}
8586

0 commit comments

Comments
 (0)