Trait json_value_resolve::Resolve[][src]

pub trait Resolve {
    fn resolve(value: String) -> Value;
}
Expand description

Trait used to resolve scalar char into a json value with the good value.

A scalar type represents a single value. Rust has four primary scalar types: integers, floating-point numbers, Booleans, and characters. You may recognize these from other programming languages. Let’s jump into how they work in Rust.

Required methods

Method use to resolve a scalar char into a json value.

Examples:
let string_value = "-00010000".to_string();
let json_value = Value::resolve(string_value);
assert_eq!(-10000, json_value.as_i64().unwrap());

Implementations on Foreign Types

Implementors