Skip to main content

SerializeFn

Type Alias SerializeFn 

Source
pub type SerializeFn = fn(&HashMap<String, Value>) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>;
Expand description

Function used to serialize the store cache to the bytes written to the store file.

The default implementation writes pretty printed JSON.