Enum qt_json_rs::elements::JsonValue[][src]

pub enum JsonValue {
    String(String),
    Number(f64),
    Object(Object),
    Array(Vec<JsonValue>),
    Undefined,
    Bool(bool),
    Null,
}
Expand description

A JSON Value is the Enum containing a Value. This makes it easy to perform match operations against it.

Variants

String(String)

Tuple Fields

0: String

This encapsulates a RUST string.

Number(f64)

Tuple Fields

0: f64

Since JS uses 64Bit floats, we can use them also

Object(Object)

Tuple Fields

0: Object

Another JavaScript Object containing a Map of keys and values.

Array(Vec<JsonValue>)

Tuple Fields

A JavaScript Array containing a list of values.

Undefined

The explicit undefined type

Bool(bool)

Tuple Fields

0: bool

A Bool

Null

A NULL value

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.