Crates.io | actionidmap-updater |
lib.rs | actionidmap-updater |
version | 0.2.0 |
source | src |
created_at | 2023-06-05 21:42:01.248705 |
updated_at | 2023-06-05 21:58:53.393084 |
description | A HashMap that can be updated from a URL. Intended to be used to keep reverse-engineered API's in use even as private referenced ID's get updated. |
homepage | |
repository | |
max_upload_size | |
id | 883371 |
size | 6,081 |
A HashMap that can be updated from a URL. Intended to be used to keep reverse-engineered API's in use even as private referenced ID's get updated, so end users don't need to update.
Generate example code below.
let mut actionmap = ActionIDMap::new("https://gist.githubusercontent.com/[..]".into(), 86400).unwrap();
let bar = actionmap.get("foo")?;
if actionmap.needs_refresh() {
actionmap.refresh();
}
The URL can be, for example, a GitHub Gist or Raw file that contains a serialized HashMap ({"key":"value"}
).