Skip to main content

saved_preset

Function saved_preset 

Source
pub fn saved_preset(state: &[u8]) -> Option<Map<String, Value>>
Expand description

Finds the preset JSON inside a state: the first JSON object that holds settings. A state the plug-in saved wraps the JSON in binary headers and a trailer; a state the builder made is the JSON itself.