[][src]Enum json_flex::JFObject

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]

pub fn into_string(&self) -> Option<&String>[src]

pub fn into_i64(&self) -> Option<&i64>[src]

pub fn into_f64(&self) -> Option<&f64>[src]

pub fn into_hashmap(&self) -> Option<&HashMap<String, JFObject>>[src]

pub fn into_vec(&self) -> Option<&Vec<JFObject>>[src]

pub fn is_null(&self) -> bool[src]

pub fn is_true(&self) -> bool[src]

pub fn is_false(&self) -> bool[src]

pub fn is_array(&self) -> bool[src]

pub fn is_dictionary(&self) -> bool[src]

pub fn is_string(&self) -> bool[src]

pub fn is_integer(&self) -> bool[src]

pub fn is_float(&self) -> bool[src]

pub fn unwrap_string(&self) -> &String[src]

pub fn unwrap_i64(&self) -> &i64[src]

pub fn unwrap_f64(&self) -> &f64[src]

pub fn unwrap_hashmap(&self) -> &HashMap<String, JFObject>[src]

pub fn unwrap_vec(&self) -> &Vec<JFObject>[src]

pub fn to_json(&self) -> String[src]

Trait Implementations

impl Clone for JFObject[src]

impl Debug for JFObject[src]

impl Decodable for JFObject[src]

impl<'a> Index<&'a str> for JFObject[src]

type Output = JFObject

The returned type after indexing.

impl Index<String> for JFObject[src]

type Output = JFObject

The returned type after indexing.

impl Index<usize> for JFObject[src]

type Output = JFObject

The returned type after indexing.

impl Unwrap<HashMap<String, JFObject, RandomState>> for JFObject[src]

impl Unwrap<String> for JFObject[src]

impl Unwrap<Vec<JFObject>> for JFObject[src]

impl Unwrap<f64> for JFObject[src]

impl Unwrap<i64> for JFObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.