Struct jsonway::object_builder::ObjectBuilder [] [src]

pub struct ObjectBuilder {
    pub object: Object,
    pub null: bool,
    pub skip: bool,
    pub root: Option<String>,
}

Fields

Methods

impl ObjectBuilder
[src]

ObjectBuilder is used to produce JSON objects

[src]

[src]

Initialize builder with initial value.

[src]

Create new builder, pass it to closure as mutable ref and return.

[src]

It you call null, this object will be converted to null.

[src]

It you call skip, this object will be skipped.

[src]

[src]

[src]

Move out internal JSON value.

impl ObjectBuilder
[src]

[src]

Set object's name field with something that can be converted to Value value.

[src]

Stub for future use

impl ObjectBuilder
[src]

[src]

Set object's name field with raw Value value.

[src]

Build new array and set object's name field with it.

[src]

Build new object and set object's name field with it.

Trait Implementations

impl Serialize for ObjectBuilder
[src]

[src]

Copy self to new JSON instance.

Auto Trait Implementations

impl Send for ObjectBuilder

impl Sync for ObjectBuilder