Skip to content

Commit 0566811

Browse files
Adding clone and debug to WriteQuery and ReadQuery. (#63)
* Implemeting clone and debug for WriteQuery an ReadQuery. Co-authored-by: Gero Gerke <[email protected]>
1 parent ffa417a commit 0566811

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Rust
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
style:

influxdb/src/query/read_query.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use crate::query::{QueryType, ValidQuery};
66
use crate::{Error, Query};
77

8+
#[derive(Debug, Clone)]
89
pub struct ReadQuery {
910
queries: Vec<String>,
1011
}

influxdb/src/query/write_query.rs

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ impl<T: Into<Type>> WriteType for Option<T> {
2727
}
2828

2929
/// Internal Representation of a Write query that has not yet been built
30+
#[derive(Debug, Clone)]
3031
pub struct WriteQuery {
3132
fields: Vec<(String, Type)>,
3233
tags: Vec<(String, Type)>,
@@ -105,6 +106,7 @@ impl WriteQuery {
105106
}
106107
}
107108

109+
#[derive(Debug, Clone)]
108110
pub enum Type {
109111
Boolean(bool),
110112
Float(f64),

0 commit comments

Comments
 (0)