Struct juniper::Object[][src]

pub struct Object { /* fields omitted */ }

A Object value

Methods

impl Object
[src]

Create a new Object value with a fixed number of preallocated slots for field-value pairs

Add a new field with a value

If there is already a field with the same name the old value is returned

Check if the object already contains a field with the given name

Get a iterator over all field value pairs

This method returns a iterator over &'a (String, Value)

Get a iterator over all mutable field value pairs

This method returns a iterator over &mut 'a (String, Value)

Get the current number of fields

Get the value for a given field

Trait Implementations

impl Debug for Object
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Object
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Object
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl IntoIterator for Object
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl From<Object> for Value
[src]

Performs the conversion.

impl<K> FromIterator<(K, Value)> for Object where
    K: Into<String>,
    &'a str: PartialEq<K>, 
[src]

Creates a value from an iterator. Read more

impl Serialize for Object
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Object

impl Sync for Object