#[repr(u8)]pub enum AdjustmentCause {
Localoptimization = 0,
Gridoptimization = 1,
}Variants§
Localoptimization = 0
The adjustment is to optimize the local energy usage
Gridoptimization = 1
The adjustment is to optimize the grid energy usage
Implementations§
Trait Implementations§
Source§impl Clone for AdjustmentCause
impl Clone for AdjustmentCause
Source§fn clone(&self) -> AdjustmentCause
fn clone(&self) -> AdjustmentCause
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 AdjustmentCause
impl Debug for AdjustmentCause
Source§impl<'de> Deserialize<'de> for AdjustmentCause
impl<'de> Deserialize<'de> for AdjustmentCause
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
Source§impl From<AdjustmentCause> for u8
impl From<AdjustmentCause> for u8
Source§fn from(val: AdjustmentCause) -> Self
fn from(val: AdjustmentCause) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdjustmentCause
impl PartialEq for AdjustmentCause
Source§impl Serialize for AdjustmentCause
impl Serialize for AdjustmentCause
impl Copy for AdjustmentCause
impl Eq for AdjustmentCause
impl StructuralPartialEq for AdjustmentCause
Auto Trait Implementations§
impl Freeze for AdjustmentCause
impl RefUnwindSafe for AdjustmentCause
impl Send for AdjustmentCause
impl Sync for AdjustmentCause
impl Unpin for AdjustmentCause
impl UnwindSafe for AdjustmentCause
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