pub struct HomeAssistantConfig {
pub enabled: bool,
pub discovery_prefix: String,
pub status_topic: String,
}Expand description
Home Assistant discovery.
Fields§
§enabled: boolPublish discovery for devices with decoded readings.
discovery_prefix: StringThe discovery prefix.
status_topic: StringHome Assistant’s birth topic; discovery is sent again when it comes online.
Trait Implementations§
Source§impl Clone for HomeAssistantConfig
impl Clone for HomeAssistantConfig
Source§impl Debug for HomeAssistantConfig
impl Debug for HomeAssistantConfig
Source§impl Default for HomeAssistantConfig
impl Default for HomeAssistantConfig
Source§impl<'de> Deserialize<'de> for HomeAssistantConfigwhere
HomeAssistantConfig: Default,
impl<'de> Deserialize<'de> for HomeAssistantConfigwhere
HomeAssistantConfig: 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
Auto Trait Implementations§
impl Freeze for HomeAssistantConfig
impl RefUnwindSafe for HomeAssistantConfig
impl Send for HomeAssistantConfig
impl Sync for HomeAssistantConfig
impl Unpin for HomeAssistantConfig
impl UnsafeUnpin for HomeAssistantConfig
impl UnwindSafe for HomeAssistantConfig
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