pub struct Power {
pub base: Resource,
pub actions: Option<Actions>,
pub power_control: Option<Vec<NavProperty<PowerControl>>>,
pub voltages: Option<Vec<NavProperty<Voltage>>>,
pub power_supplies: Option<Vec<NavProperty<PowerSupply>>>,
pub redundancy: Option<Vec<ReferenceLeaf>>,
}Expand description
The Power schema describes power metrics and represents the properties for power consumption and
power limiting.
This resource shall contain the power metrics for a Redfish implementation.
Fields§
§base: ResourceBase type
actions: Option<Actions>The available actions for this resource.
This property shall contain the available actions for this resource.
power_control: Option<Vec<NavProperty<PowerControl>>>The set of power control functions, including power reading and limiting.
This property shall contain the set of power control readings and settings.
voltages: Option<Vec<NavProperty<Voltage>>>The set of voltage sensors for this chassis.
This property shall contain the set of voltage sensors for this chassis.
power_supplies: Option<Vec<NavProperty<PowerSupply>>>The set of power supplies associated with this system or device.
This property shall contain the set of power supplies associated with this system or device.
redundancy: Option<Vec<ReferenceLeaf>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Power
impl<'de> Deserialize<'de> for Power
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 EntityTypeRef for Power
impl EntityTypeRef for Power
Source§impl Expandable for Power
impl Expandable for Power
Source§impl RedfishSettings<Power> for Power
impl RedfishSettings<Power> for Power
Source§fn settings_object(&self) -> Option<NavProperty<Self>>
fn settings_object(&self) -> Option<NavProperty<Self>>
Reference to the enity type object.
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl Sync for Power
impl Unpin for Power
impl UnsafeUnpin for Power
impl UnwindSafe for Power
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