Struct serde::json::builder::ObjectBuilder [] [src]

pub struct ObjectBuilder {
    // some fields omitted
}

Methods

impl ObjectBuilder

fn new() -> ObjectBuilder

fn unwrap(self) -> Value

fn insert<V: Serialize>(self, k: String, v: V) -> ObjectBuilder

fn insert_array<F>(self, key: String, f: F) -> ObjectBuilder where F: FnOnce(ArrayBuilder) -> ArrayBuilder

fn insert_object<F>(self, key: String, f: F) -> ObjectBuilder where F: FnOnce(ObjectBuilder) -> ObjectBuilder