pub struct ServiceMeterInput {
pub months: Option<Decimal>,
pub event_count: Option<u32>,
pub event_price_eur: Option<Decimal>,
}Expand description
Energiedienstleistung service usage.
Fields§
§months: Option<Decimal>§event_count: Option<u32>§event_price_eur: Option<Decimal>Implementations§
Source§impl ServiceMeterInput
impl ServiceMeterInput
Sourcepub fn apportioned(&self, a: &DayApportionment) -> Self
pub fn apportioned(&self, a: &DayApportionment) -> Self
This leg’s share of an Energiedienstleistung period total.
event_price_eur is the agreed price of one event, not a total, so it
is carried whole.
Trait Implementations§
Source§impl Clone for ServiceMeterInput
impl Clone for ServiceMeterInput
Source§fn clone(&self) -> ServiceMeterInput
fn clone(&self) -> ServiceMeterInput
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 moreSource§impl Debug for ServiceMeterInput
impl Debug for ServiceMeterInput
Source§impl Default for ServiceMeterInput
impl Default for ServiceMeterInput
Source§fn default() -> ServiceMeterInput
fn default() -> ServiceMeterInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceMeterInput
impl<'de> Deserialize<'de> for ServiceMeterInput
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
Auto Trait Implementations§
impl Freeze for ServiceMeterInput
impl RefUnwindSafe for ServiceMeterInput
impl Send for ServiceMeterInput
impl Sync for ServiceMeterInput
impl Unpin for ServiceMeterInput
impl UnsafeUnpin for ServiceMeterInput
impl UnwindSafe for ServiceMeterInput
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