Skip to main content

execute

Function execute 

Source
pub async fn execute(
    client: &UnifiClient,
    capability: &Capability,
    params: &Value,
) -> Result<Value>
Expand description

Runs one internal-API capability against client.

Known actions (clients, devices, wlans, health, alarms, events, sysinfo, me) go through UnifiClient’s named methods; everything else is dispatched generically from the capability’s method/path.

§Errors

Returns UnifiError::InvalidRequest if capability isn’t an internal-API capability; see UnifiError for the other failure cases this can return.