pub enum PowerAction {
On,
Off,
Reset,
}Expand description
The power operation to apply to a list of xnames.
Variants§
On
Power on (cold start) the listed xnames.
Off
Power off the listed xnames; graceful unless force is set.
Reset
Power-cycle (reset) the listed xnames; graceful unless force
is set.
Trait Implementations§
Source§impl Clone for PowerAction
impl Clone for PowerAction
Source§fn clone(&self) -> PowerAction
fn clone(&self) -> PowerAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for PowerAction
impl ComposeSchema for PowerAction
Source§impl Debug for PowerAction
impl Debug for PowerAction
Source§impl<'de> Deserialize<'de> for PowerAction
impl<'de> Deserialize<'de> for PowerAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PowerAction
impl Serialize for PowerAction
Source§impl ToSchema for PowerAction
impl ToSchema for PowerAction
impl Copy for PowerAction
Auto Trait Implementations§
impl Freeze for PowerAction
impl RefUnwindSafe for PowerAction
impl Send for PowerAction
impl Sync for PowerAction
impl Unpin for PowerAction
impl UnwindSafe for PowerAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more