Struct juju::Config [] [src]

pub struct Config { /* fields omitted */ }

A HashMap representation of the charm's config.yaml, with some extra features: - See which values in the HashMap have changed since the previous hook. - For values that have changed, see what the previous value was. - Store arbitrary data for use in a later hook.

Methods

impl Config
[src]

Create a new Config and automatically load the previous config values if the .juju-persistent-config is present The .juju-persistent-config is also saved automatically when this struct is dropped.

Return the current value for this key

Return true if the current value for this key is different from the previous value.

Return previous value for this key, or None if there is no previous value.

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Drop for Config
[src]

A method called when the value goes out of scope. Read more