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
|
@ -4,3 +4,5 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.130", features = ["derive"] }
|
||||
serde_derive = "1.0.130"
|
||||
|
|
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue