mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
State refactor complete, fixing tests ...
This commit is contained in:
parent
00a58bbda3
commit
a064f87076
|
@ -131,7 +131,9 @@ pub struct EntryInvalid; // Modified
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct Entry<VALID, STATE> {
|
pub struct Entry<VALID, STATE> {
|
||||||
|
#[serde(default = "EntryInvalid")]
|
||||||
valid: VALID,
|
valid: VALID,
|
||||||
|
#[serde(default = "EntryNew")]
|
||||||
state: STATE,
|
state: STATE,
|
||||||
pub id: Option<i64>,
|
pub id: Option<i64>,
|
||||||
// Flag if we have been schema checked or not.
|
// Flag if we have been schema checked or not.
|
||||||
|
|
Loading…
Reference in a new issue