Struct sep2_common::packages::configuration::PowerConfiguration
source · pub struct PowerConfiguration {
pub battery_install_time: Option<TimeType>,
pub low_charge_threshold: Option<Uint32>,
}
Available on crate feature
configuration
only.Expand description
Contains configuration related to the device’s power sources
Fields§
§battery_install_time: Option<TimeType>
Time/Date at which battery was installed,
low_charge_threshold: Option<Uint32>
In context of the PowerStatus resource, this is the value of EstimatedTimeRemaining below which BatteryStatus “low” is indicated and the PS_LOW_BATTERY is raised.
Trait Implementations§
source§impl Clone for PowerConfiguration
impl Clone for PowerConfiguration
source§fn clone(&self) -> PowerConfiguration
fn clone(&self) -> PowerConfiguration
Returns a copy 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 Debug for PowerConfiguration
impl Debug for PowerConfiguration
source§impl Default for PowerConfiguration
impl Default for PowerConfiguration
source§fn default() -> PowerConfiguration
fn default() -> PowerConfiguration
Returns the “default value” for a type. Read more
source§impl PartialEq<PowerConfiguration> for PowerConfiguration
impl PartialEq<PowerConfiguration> for PowerConfiguration
source§fn eq(&self, other: &PowerConfiguration) -> bool
fn eq(&self, other: &PowerConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl YaDeserialize for PowerConfiguration
impl YaDeserialize for PowerConfiguration
source§impl YaSerialize for PowerConfiguration
impl YaSerialize for PowerConfiguration
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for PowerConfiguration
impl StructuralEq for PowerConfiguration
impl StructuralPartialEq for PowerConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for PowerConfiguration
impl Send for PowerConfiguration
impl Sync for PowerConfiguration
impl Unpin for PowerConfiguration
impl UnwindSafe for PowerConfiguration
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