1#[allow(dead_code)]
8pub struct Query {
9 condition: Option<String>,
10}
11
12#[allow(dead_code)]
14pub struct QueryResult {
15 }
17
18impl Query {
19 #[allow(dead_code)]
21 pub fn new() -> Self {
22 Query { condition: None }
23 }
24
25 #[allow(dead_code)]
27 pub fn filter(self, _condition: &str) -> Self {
28 Query {
29 condition: Some(_condition.to_string()),
30 }
31 }
32
33 #[allow(dead_code)]
35 pub fn execute(self) -> crate::Result<QueryResult> {
36 let _ = self.condition;
38 Ok(QueryResult {})
39 }
40}
41
42impl Default for Query {
43 fn default() -> Self {
44 Self::new()
45 }
46}