Enum json_flex::JFObject
[−]
[src]
pub enum JFObject { String(String), Integer(i64), Float(f64), Dictionary(HashMap<String, JFObject>), Array(Vec<JFObject>), Null, False, True, }
Variants
String(String)
Integer(i64)
Float(f64)
Dictionary(HashMap<String, JFObject>)
Array(Vec<JFObject>)
Null
False
True
Methods
impl JFObject
[src]
fn into_string(&self) -> Option<&String>
fn into_i64(&self) -> Option<&i64>
fn into_f64(&self) -> Option<&f64>
fn into_hashmap(&self) -> Option<&HashMap<String, JFObject>>
fn into_vec(&self) -> Option<&Vec<JFObject>>
fn is_null(&self) -> bool
fn is_true(&self) -> bool
fn is_false(&self) -> bool
fn is_array(&self) -> bool
fn is_dictionary(&self) -> bool
fn is_string(&self) -> bool
fn is_integer(&self) -> bool
fn is_float(&self) -> bool
fn unwrap_string(&self) -> &String
fn unwrap_i64(&self) -> &i64
fn unwrap_f64(&self) -> &f64
fn unwrap_hashmap(&self) -> &HashMap<String, JFObject>
fn unwrap_vec(&self) -> &Vec<JFObject>
Trait Implementations
impl Clone for JFObject
[src]
fn clone(&self) -> JFObject
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for JFObject
[src]
impl Decodable for JFObject
[src]
impl Unwrap<String> for JFObject
[src]
impl Unwrap<i64> for JFObject
[src]
impl Unwrap<f64> for JFObject
[src]
impl Unwrap<HashMap<String, JFObject>> for JFObject
[src]
impl Unwrap<Vec<JFObject>> for JFObject
[src]
impl Index<usize> for JFObject
[src]
type Output = JFObject
The returned type after indexing
fn index<'a>(&'a self, id: usize) -> &'a Self::Output
The method for the indexing (Foo[Bar]
) operation
impl Index<String> for JFObject
[src]
type Output = JFObject
The returned type after indexing
fn index<'a>(&'a self, id: String) -> &'a Self::Output
The method for the indexing (Foo[Bar]
) operation