1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*!
# cstea
This is a generic csv file Fill and Pour Ingredient crate for use with the `rettle` ETL.

## Data Structures
- FillCsvArg: Ingredient params for FillCsTea
- FillCsTea: Wrapper to simplifiy the creation of the Fill Ingredient to be used in the rettle Pot.
- PourCsvArg: Ingredient params for PourCsTea
- PourCsTea: Wrapper to simplifiy the creation of the Pour Ingredient to be used in the rettle Pot.

## Example
```ignore
#[derive(Default, Clone, Debug, Deserialize, Serialize)]
struct CsTea {
    id: i32,
    name: String,
    value: i32
}

impl Tea for CsTea {
    fn as_any(&self) -> &dyn Any {
        self
    }
}

fn main() {
    let test_csvarg = FillCsvArg::new("fixtures/test.csv", 50);
    let test_pour_csvarg = PourCsvArg::new("fixtures/pour.csv");

    let brewery = Brewery::new(4, Instant::now());
    let mut new_pot = Pot::new();
    let fill_cstea = FillCsTea::new::<CsTea>("csv_tea_source", "csv_fixture", test_csvarg);
    let pour_cstea = PourCsTea::new::<CsTea>("csv_pour_test", test_pour_csvarg);

    new_pot.add_source(fill_cstea);

    // Steep operations of choice

    new_pot.add_ingredient(pour_cstea);

    new_pot.brew(&brewery);
}
```
*/

pub mod fill;
pub mod pour;

pub use self::fill::{FillCsvArg, FillCsTea};
pub use self::pour::{PourCsvArg, PourCsTea};