Created
March 9, 2019 11:24
-
-
Save wickedchicken/53006fed217e67741540781b0e1edb89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Increment the version number every time the version changes. I can't figure out how to | |
// break this out into its own const, see https://github.com/rust-lang/rust/issues/52393. | |
#[derive(Debug, Serialize, Deserialize)] | |
#[serde(tag = "schema_version")] | |
enum VersionedCheckListList { | |
#[serde(rename = "1")] // increment here | |
Current(CheckListList), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment