Use struct for passing module arguments: csv

This commit is contained in:
George Kaklamanos 2023-11-22 19:41:16 +02:00
parent 5013fdcf1c
commit 2caad2a5ef
No known key found for this signature in database
GPG key ID: C0CAB8A6BDC9399D

View file

@ -1,6 +1,18 @@
use labadoor_acl::{ACLEntry, AuthMethod, ResourceShortcuts, ACL};
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 path: String,
}