pub enum CumulativeFlag {
False,
Both,
Generation,
Consumption,
}Expand description
Whether to process a status as cumulative, and if so, which of its fields are cumulative.
Variants§
False
This status is not cumulative.
Both
The energy generation and consumption values for this status are lifetime cumulative values.
Generation
The energy generation value for this status is lifetime cumulative.
Consumption
The energy consumption value for this status is lifetime cumulative.
Trait Implementations§
Source§impl Clone for CumulativeFlag
impl Clone for CumulativeFlag
Source§fn clone(&self) -> CumulativeFlag
fn clone(&self) -> CumulativeFlag
Returns a duplicate 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 CumulativeFlag
impl Debug for CumulativeFlag
Source§impl Default for CumulativeFlag
impl Default for CumulativeFlag
Source§fn default() -> CumulativeFlag
fn default() -> CumulativeFlag
Returns the “default value” for a type. Read more
Source§impl Hash for CumulativeFlag
impl Hash for CumulativeFlag
Source§impl PartialEq for CumulativeFlag
impl PartialEq for CumulativeFlag
Source§impl Serialize for CumulativeFlag
impl Serialize for CumulativeFlag
impl Copy for CumulativeFlag
impl Eq for CumulativeFlag
impl StructuralPartialEq for CumulativeFlag
Auto Trait Implementations§
impl Freeze for CumulativeFlag
impl RefUnwindSafe for CumulativeFlag
impl Send for CumulativeFlag
impl Sync for CumulativeFlag
impl Unpin for CumulativeFlag
impl UnwindSafe for CumulativeFlag
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