actionidmap-updater

Crates.ioactionidmap-updater
lib.rsactionidmap-updater
version0.2.0
sourcesrc
created_at2023-06-05 21:42:01.248705
updated_at2023-06-05 21:58:53.393084
descriptionA 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
id883371
size6,081
Matthew Esposito (sigaloid)

documentation

README

ActionIDMap

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"}).

Commit count: 0

cargo fmt