Struct TariffProfile
pub struct TariffProfile<'a> {
pub settings_fc: Fc,
pub start_object: &'a str,
pub first_price: &'a str,
pub price_unit: &'a str,
}Expand description
Object names, settings constraint and price unit for one engineered FSCH instance.
Fields§
§settings_fc: FcFunctional constraint for setting values, either SP or active SG.
start_object: &'a strAbsolute UTC start object, e.g. StrTm or StrTm1. Reads its setTm attribute.
first_price: &'a strFirst numbered price object, e.g. ValASG001 or ValING1. Padding is preserved.
price_unit: &'a strUnit of each numeric price as agreed with the provider, e.g. ct/kWh.
Implementations§
§impl<'a> TariffProfile<'a>
impl<'a> TariffProfile<'a>
pub const fn new(price_unit: &'a str) -> TariffProfile<'a>
pub const fn new(price_unit: &'a str) -> TariffProfile<'a>
Use SP settings, StrTm1.setTm and ValASG001.setMag.f for the supplied price unit.
Trait Implementations§
§impl<'a> Clone for TariffProfile<'a>
impl<'a> Clone for TariffProfile<'a>
§fn clone(&self) -> TariffProfile<'a>
fn clone(&self) -> TariffProfile<'a>
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 moreimpl<'a> Copy for TariffProfile<'a>
Auto Trait Implementations§
impl<'a> Freeze for TariffProfile<'a>
impl<'a> RefUnwindSafe for TariffProfile<'a>
impl<'a> Send for TariffProfile<'a>
impl<'a> Sync for TariffProfile<'a>
impl<'a> Unpin for TariffProfile<'a>
impl<'a> UnsafeUnpin for TariffProfile<'a>
impl<'a> UnwindSafe for TariffProfile<'a>
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