shuttle
shuttle copied to clipboard
Object persistence from annotations
Currently the only form of persistence across runs of a service is an (optional) database accessible via Factory.
Maybe we could allow users to "persist" a serializable/deserializable object across runs with a simple derive annotation
#[derive(Serialize, Deserialize, Persist)]
struct MyPersistingState {
view_counter: usize
}
I'll give this a go!
This was added with the new persist resource in v0.6.0