kanidmd_lib/be/
dbrepl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use super::dbvalue::DbCidV1;
use crate::prelude::entries::Attribute;
use std::collections::{BTreeMap, BTreeSet};

use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub enum DbEntryChangeState {
    V1Live {
        at: DbCidV1,
        changes: BTreeMap<Attribute, DbCidV1>,
    },
    V1Tombstone {
        at: DbCidV1,
    },
}

#[derive(Serialize, Deserialize, Debug)]
pub enum DbReplMeta {
    V1 { ruv: BTreeSet<DbCidV1> },
}