Skip to main content

manta_shared/shared/params/
power.rs

1//! Parameters for `POST /power`.
2
3/// The power operation to apply to a list of xnames.
4#[derive(Debug, Clone, Copy)]
5pub enum PowerAction {
6  On,
7  Off,
8  Reset,
9}
10
11/// Typed parameters for the power-action service call.
12pub struct ApplyPowerParams {
13  pub action: PowerAction,
14  pub xnames: Vec<String>,
15  pub force: bool,
16}