Use struct for passing module arguments: csv
This commit is contained in:
parent
5013fdcf1c
commit
2caad2a5ef
1 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,18 @@
|
||||||
use labadoor_acl::{ACLEntry, AuthMethod, ResourceShortcuts, ACL};
|
use labadoor_acl::{ACLEntry, AuthMethod, ResourceShortcuts, ACL};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
|
pub struct CSVArgs {
|
||||||
|
pub path: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl CSVArgs {
|
||||||
|
pub fn new(&self) -> CSV {
|
||||||
|
CSV {
|
||||||
|
path: self.path.clone(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub struct CSV {
|
pub struct CSV {
|
||||||
pub path: String,
|
pub path: String,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue