Move ACL structs from labadoor-csv to labadoor-acl

This commit is contained in:
George Kaklamanos 2023-09-21 20:28:15 +03:00
parent 321ab21f8e
commit e1d1aa1ed8
4 changed files with 25 additions and 23 deletions

View file

@ -4,3 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
serde = { version = "1.0.130", features = ["derive"] }
serde_derive = "1.0.130"

View file

@ -0,0 +1,21 @@
use serde_derive::Deserialize;
#[derive(Deserialize, Debug)]
pub struct ACLEntry {
pub username: String,
pub resource: String,
}
#[derive(Deserialize, Debug)]
pub struct AuthMethod {
pub username: String,
pub method: String,
pub identifier: String,
}
#[derive(Deserialize, Debug)]
pub struct ResourceShortcuts {
pub username: String,
pub resource: String,
pub id: i8,
}