Skip to main content

dispatch_state_command

Function dispatch_state_command 

Source
pub fn dispatch_state_command(cmd: &Value) -> Option<Result<Value, String>>
Expand description

Dispatch a state management command from its JSON payload. Returns Some(result) for recognised state_* actions, None otherwise.