Function juju::relation_get_by_id [] [src]

pub fn relation_get_by_id(key: &str,
                          id: &Relation,
                          unit: &Relation)
                          -> Result<Option<String>, JujuError>

Get relation information using a specific relation ID. Used outside of relation hooks

Failures

Will return a String of the stderr if the call fails