Move ACL structs from labadoor-csv to labadoor-acl
This commit is contained in:
parent
321ab21f8e
commit
e1d1aa1ed8
4 changed files with 25 additions and 23 deletions
|
@ -1,24 +1,4 @@
|
|||
use serde_derive::Deserialize;
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct ACLEntry {
|
||||
username: String,
|
||||
resource: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct AuthMethod {
|
||||
username: String,
|
||||
method: String,
|
||||
identifier: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct ResourceShortcuts {
|
||||
username: String,
|
||||
resource: String,
|
||||
id: i8,
|
||||
}
|
||||
use labadoor_acl::{ACLEntry, AuthMethod, ResourceShortcuts};
|
||||
|
||||
fn get_username(method: String, identifier: String) -> Result<String, ()> {
|
||||
let mut ret = Err(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue