mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-22 00:43:54 +02:00
This adds support for authentication and credential storage to the server. It also adds account recovery and options for integration test fixtures, refactors to make the client library easier to manage, and support clean seperation of the proto vs lib.
22 lines
533 B
Rust
22 lines
533 B
Rust
use crate::be::dbvalue::DbValueV1;
|
|
use std::collections::BTreeMap;
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub struct DbEntryV1 {
|
|
pub attrs: BTreeMap<String, Vec<DbValueV1>>,
|
|
}
|
|
|
|
// REMEMBER: If you add a new version here, you MUST
|
|
// update entry.rs into_dbentry to export to the latest
|
|
// type always!!
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub enum DbEntryVers {
|
|
V1(DbEntryV1),
|
|
}
|
|
|
|
// This is actually what we store into the DB.
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub struct DbEntry {
|
|
pub ent: DbEntryVers,
|
|
}
|