Struct juju::Context [] [src]

pub struct Context {
    pub relation_type: String,
    pub relation_id: usize,
    pub unit: String,
    pub relations: HashMap<String, String>,
}

Fields

The scope for the current relation hook

The relation ID for the current relation hook

Local unit ID

relation data for all related units

Methods

impl Context
[src]

Constructs a new Context Creates a context that's filled out from the env variables

Example usage

extern crate juju;
let context = juju::Context::new_from_env();

Trait Implementations

impl Debug for Context
[src]

Formats the value using the given formatter.