Trait pact_models::json_utils::JsonToNum
source · [−]pub trait JsonToNum<T> {
fn json_to_number(map: &Map<String, Value>, field: &str, default: T) -> T;
}
Expand description
Trait to convert a JSON structure to a number
pub trait JsonToNum<T> {
fn json_to_number(map: &Map<String, Value>, field: &str, default: T) -> T;
}
Trait to convert a JSON structure to a number