pub struct PowerControl {
pub name: Option<String>,
pub power_consumed_watts: Option<f64>,
pub power_capacity_watts: Option<f64>,
}Fields§
§name: Option<String>§power_consumed_watts: Option<f64>§power_capacity_watts: Option<f64>Trait Implementations§
Source§impl Clone for PowerControl
impl Clone for PowerControl
Source§fn clone(&self) -> PowerControl
fn clone(&self) -> PowerControl
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 PowerControl
impl Debug for PowerControl
Source§impl<'de> Deserialize<'de> for PowerControl
impl<'de> Deserialize<'de> for PowerControl
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 PowerControl
impl RefUnwindSafe for PowerControl
impl Send for PowerControl
impl Sync for PowerControl
impl Unpin for PowerControl
impl UnsafeUnpin for PowerControl
impl UnwindSafe for PowerControl
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