mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 10:38:20 +00:00
15 lines
364 B
Rust
15 lines
364 B
Rust
use serde::{Deserialize, Serialize};
|
|
use std::collections::HashMap;
|
|
use validator::Validate;
|
|
|
|
#[derive(Serialize, Deserialize, Validate, Default, Debug)]
|
|
pub struct System {
|
|
pub users: HashMap<String, User>,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Validate, Default, Debug)]
|
|
pub struct User {
|
|
pub comment: String,
|
|
pub hash: String,
|
|
pub salt: String,
|
|
}
|