Struct sep2_common::packages::configuration::PriceResponseCfg
source · pub struct PriceResponseCfg {
pub consume_threshold: Int32,
pub max_reduction_threshold: Int32,
pub rate_component_link: RateComponentLink,
pub href: Option<String>,
}
Available on crate feature
configuration
only.Fields§
§consume_threshold: Int32
Price responsive clients acting upon the associated RateComponent SHOULD consume the associated commodity while the price is less than this threshold.
max_reduction_threshold: Int32
Price responsive clients acting upon the associated RateComponent SHOULD reduce consumption to the maximum extent possible while the price is greater than this threshold.
rate_component_link: RateComponentLink
§href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Clone for PriceResponseCfg
impl Clone for PriceResponseCfg
source§fn clone(&self) -> PriceResponseCfg
fn clone(&self) -> PriceResponseCfg
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 PriceResponseCfg
impl Debug for PriceResponseCfg
source§impl Default for PriceResponseCfg
impl Default for PriceResponseCfg
source§fn default() -> PriceResponseCfg
fn default() -> PriceResponseCfg
Returns the “default value” for a type. Read more
source§impl Ord for PriceResponseCfg
impl Ord for PriceResponseCfg
source§fn cmp(&self, other: &PriceResponseCfg) -> Ordering
fn cmp(&self, other: &PriceResponseCfg) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PriceResponseCfg> for PriceResponseCfg
impl PartialEq<PriceResponseCfg> for PriceResponseCfg
source§fn eq(&self, other: &PriceResponseCfg) -> bool
fn eq(&self, other: &PriceResponseCfg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PriceResponseCfg> for PriceResponseCfg
impl PartialOrd<PriceResponseCfg> for PriceResponseCfg
source§fn partial_cmp(&self, other: &PriceResponseCfg) -> Option<Ordering>
fn partial_cmp(&self, other: &PriceResponseCfg) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SEResource for PriceResponseCfg
impl SEResource for PriceResponseCfg
source§impl YaDeserialize for PriceResponseCfg
impl YaDeserialize for PriceResponseCfg
source§impl YaSerialize for PriceResponseCfg
impl YaSerialize for PriceResponseCfg
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 PriceResponseCfg
impl StructuralEq for PriceResponseCfg
impl StructuralPartialEq for PriceResponseCfg
Auto Trait Implementations§
impl RefUnwindSafe for PriceResponseCfg
impl Send for PriceResponseCfg
impl Sync for PriceResponseCfg
impl Unpin for PriceResponseCfg
impl UnwindSafe for PriceResponseCfg
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