Crate derive_web_storage

Source
Expand description

Refer to the storage_data crate, don’t use this crate independently of it.

The storage_data crate allows to easily associate Local/Session storage data through the StorageData struct and to retrieve and set the value without requiring to manually interacting with the Web Storage API, and this crate is made to allow creating a struct where associating multiple StorageData is made much simpler and maintainable.

Attribute Macros§

WebStorage
This eases up manually calling the Web Storage API, but this might still feel uncomfortable to use, as you need to manually associate every value in a StorageData, to alleviate this, the crate::WebStorage derive macro allows you to create a struct where you define a group of storage values, and it modifies said struct to turn every value into a StorageData.