Crates.io | rj |
lib.rs | rj |
version | 0.1.1 |
source | src |
created_at | 2022-10-21 03:38:29.44338 |
updated_at | 2023-10-17 08:28:13.600059 |
description | reactive json ... |
homepage | |
repository | https://github.com/rust-china/reactive_json |
max_upload_size | |
id | 693170 |
size | 42,386 |
rj = "0.1"
fn main() {
pretty_env_logger::init();
let john = serde_json::json!({
"name": "John Doe",
});
let json: rj::RJson = john.into();
let effect_json = json.clone();
let _eff = rj::effect(move || {
println!("effect fn1 -> name: {:?}", effect_json.get("name"));
});
json.set("name", "zhangsan");
}