State refactor complete, fixing tests ...

This commit is contained in:
William Brown 2019-01-29 16:24:30 +10:00
parent 00a58bbda3
commit a064f87076

View file

@ -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.