[][src]Enum tinyjson::JsonValue

pub enum JsonValue {
    Number(f64),
    Boolean(bool),
    String(String),
    Null,
    Array(Vec<JsonValue>),
    Object(HashMap<String, JsonValue>),
}

Variants

Number(f64)
Boolean(bool)
String(String)
Null
Array(Vec<JsonValue>)

Implementations

impl JsonValue[src]

pub fn get<T: InnerAsRef>(&self) -> Option<&T>[src]

pub fn get_mut<T: InnerAsRefMut>(&mut self) -> Option<&mut T>[src]

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

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

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

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

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

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

pub fn stringify(&self) -> JsonGenerateResult[src]

Trait Implementations

impl Clone for JsonValue[src]

impl Debug for JsonValue[src]

impl FromStr for JsonValue[src]

type Err = JsonParseError

The associated error which can be returned from parsing.

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

type Output = JsonValue

The returned type after indexing.

impl Index<usize> for JsonValue[src]

type Output = JsonValue

The returned type after indexing.

impl<'a> IndexMut<&'a str> for JsonValue[src]

impl IndexMut<usize> for JsonValue[src]

impl PartialEq<JsonValue> for JsonValue[src]

impl StructuralPartialEq for JsonValue[src]

impl TryInto<()> for JsonValue[src]

type Error = UnexpectedValue

The type returned in the event of a conversion error.

impl TryInto<HashMap<String, JsonValue, RandomState>> for JsonValue[src]

type Error = UnexpectedValue

The type returned in the event of a conversion error.

impl TryInto<String> for JsonValue[src]

type Error = UnexpectedValue

The type returned in the event of a conversion error.

impl TryInto<Vec<JsonValue>> for JsonValue[src]

type Error = UnexpectedValue

The type returned in the event of a conversion error.

impl TryInto<bool> for JsonValue[src]

type Error = UnexpectedValue

The type returned in the event of a conversion error.

impl TryInto<f64> for JsonValue[src]

type Error = UnexpectedValue

The type returned in the event of a conversion error.

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.