Recipe: make Action an enum with process and print
This commit is contained in:
parent
4890611460
commit
11e97d3dcb
1 changed files with 3 additions and 2 deletions
|
|
@ -46,8 +46,9 @@ pub struct Dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize)]
|
||||||
pub struct Action {
|
pub enum Action {
|
||||||
process: String,
|
process(String),
|
||||||
|
print,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue