[][src]Struct validators::json_object::JSONObject

pub struct JSONObject { /* fields omitted */ }

Methods

impl JSONObject
[src]

impl JSONObject
[src]

Methods from Deref<Target = Map<String, Value>>

Clears the map, removing all values.

Returns a reference to the value corresponding to the key.

The key may be any borrowed form of the map's key type, but the ordering on the borrowed form must match the ordering on the key type.

Returns true if the map contains a value for the specified key.

The key may be any borrowed form of the map's key type, but the ordering on the borrowed form must match the ordering on the key type.

Returns a mutable reference to the value corresponding to the key.

The key may be any borrowed form of the map's key type, but the ordering on the borrowed form must match the ordering on the key type.

Inserts a key-value pair into the map.

If the map did not have this key present, None is returned.

If the map did have this key present, the value is updated, and the old value is returned.

Removes a key from the map, returning the value at the key if the key was previously in the map.

The key may be any borrowed form of the map's key type, but the ordering on the borrowed form must match the ordering on the key type.

Gets the given key's corresponding entry in the map for in-place manipulation.

Returns the number of elements in the map.

Returns true if the map contains no elements.

Gets an iterator over the entries of the map.

Gets a mutable iterator over the entries of the map.

Gets an iterator over the keys of the map.

Gets an iterator over the values of the map.

Gets an iterator over mutable values of the map.

Trait Implementations

impl Validated for JSONObject
[src]

impl ValidatedWrapper for JSONObject
[src]

impl PartialEq<JSONObject> for JSONObject
[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 JSONObject
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl DerefMut for JSONObject
[src]

Mutably dereferences the value.

impl Deref for JSONObject
[src]

The resulting type after dereferencing.

Dereferences the value.

impl Debug for JSONObject
[src]

Formats the value using the given formatter. Read more

impl Display for JSONObject
[src]

Formats the value using the given formatter. Read more

impl<'a> FromParam<'a> for JSONObject
[src]

The associated error to be returned when parsing fails.

Parses an instance of Self from a dynamic path parameter string or returns an Error if one cannot be parsed. Read more

impl<'a> FromFormValue<'a> for JSONObject
[src]

The associated error which can be returned from parsing. It is a good idea to have the return type be or contain an &'v str so that the unparseable string can be examined after a bad parse. Read more

Parses an instance of Self from an HTTP form field value or returns an Error if one cannot be parsed. Read more

Returns a default value to be used when the form field does not exist. If this returns None, then the field is required. Otherwise, this should return Some(default_value). The default implementation simply returns None. Read more

impl Serialize for JSONObject
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for JSONObject
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for JSONObject

impl Sync for JSONObject

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]