pub type StateReducer = Box<dyn Fn(&Value, &Value) -> Result<Value, String> + Send + Sync>;
State Reducer 类型别名 — 将已有值与新值合并。
pub struct StateReducer(/* private fields */);