Struct jsonway::array_builder::ArrayBuilder [] [src]

pub struct ArrayBuilder {
    pub array: JsonArray,
    pub null: bool,
    pub skip: bool,
    pub root: Option<String>,
}

Fields

Methods

impl ArrayBuilder
[src]

Use ArrayBuilder to produce JSON arrays

[src]

[src]

Initialize builder with initial value.

[src]

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

[src]

Push JSON value to array.

[src]

Create new array and push it.

[src]

Create new object and push it

[src]

It you call null, this array will be converted to null when converting to raw JSON value.

[src]

It you call skip, this array will be skipped.

[src]

[src]

[src]

Move out internal JSON value.

impl ArrayBuilder
[src]

[src]

Push to array something that can be converted to JSON.

impl ArrayBuilder
[src]

[src]

Fill this array by objects builded from iterator.

[src]

[src]

Fill this array by JSON values builded from iterator.

Trait Implementations

impl Serialize for ArrayBuilder
[src]

[src]

Copy self to new JSON instance.

Auto Trait Implementations

impl Send for ArrayBuilder

impl Sync for ArrayBuilder