Closed zonyitoo closed 5 years ago
{ # specify rate in requests/second (because comments are helpful!) rate: 1000 }
This is the example taken from README. And we have to use the value of rate by as_f64 like this:
README
rate
as_f64
let rate = sample.get("rate").unwrap().as_f64().unwrap();
1000 should be Value::U64 or at least Value::I64.
1000
Value::U64
Value::I64
Maybe we can represent number values as Value::Number like serde-json does?
Value::Number
serde-json
This is the example taken from
README
. And we have to use the value ofrate
byas_f64
like this:1000
should beValue::U64
or at leastValue::I64
.Maybe we can represent number values as
Value::Number
likeserde-json
does?