pub struct BoostActiveRoomsConfig {
interefere_off_leave_alone_time: Duration,
interfere_change_leave_alone_time: Duration,
parts: Vec<BoostActiveRoom>,
}
Expand description
Configuration for how PythonBrain handles active devices
Fields§
§interefere_off_leave_alone_time: Duration
How long to not apply / cancel any boosts for after a third party has turned off the room we were boosting.
interfere_change_leave_alone_time: Duration
How long to not apply / cancel any boosts for after a third party has changed the boost temperature of a room we were boosting.
parts: Vec<BoostActiveRoom>
Individual room boost entries
Implementations§
source§impl BoostActiveRoomsConfig
impl BoostActiveRoomsConfig
pub fn get_parts(&self) -> &Vec<BoostActiveRoom>
pub fn combine(&mut self, other: Self)
pub fn get_interfere_off_leave_alone_time(&self) -> &Duration
pub fn get_interfere_change_leave_alone_time(&self) -> &Duration
Trait Implementations§
source§impl Clone for BoostActiveRoomsConfig
impl Clone for BoostActiveRoomsConfig
source§fn clone(&self) -> BoostActiveRoomsConfig
fn clone(&self) -> BoostActiveRoomsConfig
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 BoostActiveRoomsConfig
impl Debug for BoostActiveRoomsConfig
source§impl Default for BoostActiveRoomsConfig
impl Default for BoostActiveRoomsConfig
source§impl<'de> Deserialize<'de> for BoostActiveRoomsConfigwhere
BoostActiveRoomsConfig: Default,
impl<'de> Deserialize<'de> for BoostActiveRoomsConfigwhere
BoostActiveRoomsConfig: 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 BoostActiveRoomsConfig
impl PartialEq for BoostActiveRoomsConfig
source§fn eq(&self, other: &BoostActiveRoomsConfig) -> bool
fn eq(&self, other: &BoostActiveRoomsConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BoostActiveRoomsConfig
Auto Trait Implementations§
impl RefUnwindSafe for BoostActiveRoomsConfig
impl Send for BoostActiveRoomsConfig
impl Sync for BoostActiveRoomsConfig
impl Unpin for BoostActiveRoomsConfig
impl UnwindSafe for BoostActiveRoomsConfig
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