Enum miniserde::json::Value[][src]

pub enum Value {
    Null,
    Bool(bool),
    Number(Number),
    String(String),
    Array(Array),
    Object(Object),
}

Any valid JSON value.

This type has a non-recursive drop implementation so it is safe to build arbitrarily deeply nested instances.

use miniserde::json::{Array, Value};

let mut value = Value::Null;
for _ in 0..100000 {
    let mut array = Array::new();
    array.push(value);
    value = Value::Array(array);
}
// no stack overflow when `value` goes out of scope

Variants

Trait Implementations

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl Default for Value
[src]

The default value is null.

impl Serialize for Value
[src]

impl Deserialize for Value
[src]

The only correct implementation of this method is: Read more

impl FromIterator<Value> for Array
[src]

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for Value

impl Sync for Value