manta-shared 2.0.0-beta.7

Shared types and pure helpers used by both manta-cli and manta-server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Parameters for `POST /power`.

/// The power operation to apply to a list of xnames.
#[derive(Debug, Clone, Copy)]
pub enum PowerAction {
  On,
  Off,
  Reset,
}

/// Typed parameters for the power-action service call.
pub struct ApplyPowerParams {
  pub action: PowerAction,
  pub xnames: Vec<String>,
  pub force: bool,
}