Struct sep2_common::packages::drlc::TargetReduction
source · pub struct TargetReduction {
pub _type: UnitType,
pub value: Uint16,
}
Available on crate feature
drlc
only.Expand description
The TargetReduction object is used by a Demand Response service provider to provide a RECOMMENDED threshold that a device/premises should maintain its consumption below. For example, a service provider can provide a RECOMMENDED threshold of some kWh for a 3-hour event. This means that the device/premises would maintain its consumption below the specified limit for the specified period.
Fields§
§_type: UnitType
Indicates the type of reduction requested.
value: Uint16
Indicates the requested amount of the relevant commodity to be reduced.
Trait Implementations§
source§impl Clone for TargetReduction
impl Clone for TargetReduction
source§fn clone(&self) -> TargetReduction
fn clone(&self) -> TargetReduction
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 TargetReduction
impl Debug for TargetReduction
source§impl Default for TargetReduction
impl Default for TargetReduction
source§fn default() -> TargetReduction
fn default() -> TargetReduction
Returns the “default value” for a type. Read more
source§impl PartialEq<TargetReduction> for TargetReduction
impl PartialEq<TargetReduction> for TargetReduction
source§fn eq(&self, other: &TargetReduction) -> bool
fn eq(&self, other: &TargetReduction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl YaDeserialize for TargetReduction
impl YaDeserialize for TargetReduction
source§impl YaSerialize for TargetReduction
impl YaSerialize for TargetReduction
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 TargetReduction
impl StructuralEq for TargetReduction
impl StructuralPartialEq for TargetReduction
Auto Trait Implementations§
impl RefUnwindSafe for TargetReduction
impl Send for TargetReduction
impl Sync for TargetReduction
impl Unpin for TargetReduction
impl UnwindSafe for TargetReduction
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