Struct jconfig::config::Config [] [src]

pub struct Config { /* fields omitted */ }

A map of the configuration entries

Methods

impl Config
[src]

Creates a new, empty configuration

Load a Config from a JSON string

Load a Config from a file

Set a config field to the corresponding value.

The field is determined by the type of the value being set.

Access the raw value of a field.

Prefer to use the typed getters instead.

Set the raw value of a field, bypassing any typed fields.

Remove a field by name

Get a reference to a field's value, if it exists.

Get a mutable reference to a field's value, if it exists.

Returns a boolean of whether a certain field is in the config.

Removes a field from the config, if one existed. Returns true if field has been removed.

Returns an iterator over the fields.

Returns the number of fields in the config.

Remove all fields from the config.

Trait Implementations

impl Default for Config
[src]

Returns the "default value" for a type. Read more

impl FieldRef for Config
[src]

View a reference to a field if it exists.

View a reference to the RawValue of the field if it exists.

impl FieldMut for Config
[src]

Set a field to the given value.

Set a field to the given raw value.

impl<'a> Extend<FieldView<'a>> for Config
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> FromIterator<FieldView<'a>> for Config
[src]

Creates a value from an iterator. Read more