Module alfred_rs::data [] [src]

Helper to store persistent or temporary data to disk.

This module provides methods to store workflow related data (such as settings, configurations, ...) to disk. Additionally using the non-method functions workflow authors can save/load data to workflow's cache directory.

To store/retrieve workflow related data, use set() and get() method after load()ing. Example of such data can be authentication info related to workflow or how many items you should show to user in Alfred's main window.

To save/load temporary data, use save_to_file() and load_from_file() functions. Example of such data are cached list of items related to workflow or a downloaded file to be used later.

Structs

Data

Workflow data that will be persisted to disk