Struct serde::json::builder::ObjectBuilder
[−]
[src]
pub struct ObjectBuilder { // some fields omitted }
pub struct ObjectBuilder { // some fields omitted }
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
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)