Struct follow_heating::brain::python_like::config::PythonBrainConfig
source · pub struct PythonBrainConfig {
pub hp_circulation: HeatPumpCirculationConfig,
pub hp_enable_time: Duration,
pub temp_before_circulate: f32,
min_hp_runtime: MinHeatPumpRuntime,
pub default_working_range: WorkingTemperatureRange,
pub working_temp_model: WorkingTempModelConfig,
additive_config: PythonBrainAdditiveConfig,
}
Fields§
§hp_circulation: HeatPumpCirculationConfig
Configuration that controls on/off cycles of the heat pump when the tank reaches too hot of a temperature.
hp_enable_time: Duration
How long (in seconds) it takes for the heat pump to fully turn on
temp_before_circulate: f32
The minimum HPRT temperature to start circulating through the heating
min_hp_runtime: MinHeatPumpRuntime
TODO: Currently unused
default_working_range: WorkingTemperatureRange
If we cannot calculate the working range using wiser, we fallback to this, though this is usually rapidly replaced with the last used (calculated) working temperature range
working_temp_model: WorkingTempModelConfig
§additive_config: PythonBrainAdditiveConfig
Implementations§
source§impl PythonBrainConfig
impl PythonBrainConfig
pub fn get_overrun_during(&self) -> &OverrunConfig
pub fn get_immersion_heater_model(&self) -> &ImmersionHeaterModelConfig
pub fn get_boost_active_rooms(&self) -> &BoostActiveRoomsConfig
pub fn get_no_heating(&self) -> &Vec<ZonedSlot>
pub fn _add_dhw_slot(&mut self, slot: DhwBap)
Trait Implementations§
source§impl AsRef<HeatPumpCirculationConfig> for PythonBrainConfig
impl AsRef<HeatPumpCirculationConfig> for PythonBrainConfig
source§fn as_ref(&self) -> &HeatPumpCirculationConfig
fn as_ref(&self) -> &HeatPumpCirculationConfig
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<MinHeatPumpRuntime> for PythonBrainConfig
impl AsRef<MinHeatPumpRuntime> for PythonBrainConfig
source§fn as_ref(&self) -> &MinHeatPumpRuntime
fn as_ref(&self) -> &MinHeatPumpRuntime
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<OverrunConfig> for PythonBrainConfig
impl AsRef<OverrunConfig> for PythonBrainConfig
source§fn as_ref(&self) -> &OverrunConfig
fn as_ref(&self) -> &OverrunConfig
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<WorkingTempModelConfig> for PythonBrainConfig
impl AsRef<WorkingTempModelConfig> for PythonBrainConfig
source§fn as_ref(&self) -> &WorkingTempModelConfig
fn as_ref(&self) -> &WorkingTempModelConfig
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PythonBrainConfig
impl Clone for PythonBrainConfig
source§fn clone(&self) -> PythonBrainConfig
fn clone(&self) -> PythonBrainConfig
Returns a copy 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 PythonBrainConfig
impl Debug for PythonBrainConfig
source§impl Default for PythonBrainConfig
impl Default for PythonBrainConfig
source§impl<'de> Deserialize<'de> for PythonBrainConfigwhere
PythonBrainConfig: Default,
impl<'de> Deserialize<'de> for PythonBrainConfigwhere
PythonBrainConfig: Default,
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 PartialEq for PythonBrainConfig
impl PartialEq for PythonBrainConfig
source§fn eq(&self, other: &PythonBrainConfig) -> bool
fn eq(&self, other: &PythonBrainConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PythonBrainConfig
Auto Trait Implementations§
impl RefUnwindSafe for PythonBrainConfig
impl Send for PythonBrainConfig
impl Sync for PythonBrainConfig
impl Unpin for PythonBrainConfig
impl UnwindSafe for PythonBrainConfig
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