pub struct CarbonAwareness {
pub enabled: bool,
pub prefer_renewable: bool,
pub carbon_intensity_threshold: Option<f64>,
pub time_of_use_optimization: bool,
}Expand description
Carbon footprint awareness settings
Fields§
§enabled: boolEnable carbon-aware scheduling
prefer_renewable: boolPrefer renewable energy sources
carbon_intensity_threshold: Option<f64>Carbon intensity threshold (gCO2/kWh)
time_of_use_optimization: boolTime-of-use optimization for green energy
Trait Implementations§
Source§impl Clone for CarbonAwareness
impl Clone for CarbonAwareness
Source§fn clone(&self) -> CarbonAwareness
fn clone(&self) -> CarbonAwareness
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 CarbonAwareness
impl Debug for CarbonAwareness
Source§impl Default for CarbonAwareness
impl Default for CarbonAwareness
Source§fn default() -> CarbonAwareness
fn default() -> CarbonAwareness
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CarbonAwareness
impl RefUnwindSafe for CarbonAwareness
impl Send for CarbonAwareness
impl Sync for CarbonAwareness
impl Unpin for CarbonAwareness
impl UnwindSafe for CarbonAwareness
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more