pub struct PowerPolicyConfig {
pub shutdown: bool,
pub reboot: bool,
}Fields§
§shutdown: bool§reboot: boolTrait Implementations§
Source§impl Clone for PowerPolicyConfig
impl Clone for PowerPolicyConfig
Source§fn clone(&self) -> PowerPolicyConfig
fn clone(&self) -> PowerPolicyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerPolicyConfig
impl Debug for PowerPolicyConfig
Source§impl Default for PowerPolicyConfig
impl Default for PowerPolicyConfig
Source§fn default() -> PowerPolicyConfig
fn default() -> PowerPolicyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PowerPolicyConfigwhere
PowerPolicyConfig: Default,
impl<'de> Deserialize<'de> for PowerPolicyConfigwhere
PowerPolicyConfig: Default,
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
Auto Trait Implementations§
impl Freeze for PowerPolicyConfig
impl RefUnwindSafe for PowerPolicyConfig
impl Send for PowerPolicyConfig
impl Sync for PowerPolicyConfig
impl Unpin for PowerPolicyConfig
impl UnsafeUnpin for PowerPolicyConfig
impl UnwindSafe for PowerPolicyConfig
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