Struct hass_rs::types::HassConfig
source · pub struct HassConfig {Show 14 fields
pub latitude: f32,
pub longitude: f32,
pub elevation: u32,
pub unit_system: UnitSystem,
pub location_name: String,
pub time_zone: String,
pub components: Vec<String>,
pub config_dir: String,
pub whitelist_external_dirs: Vec<String>,
pub version: String,
pub config_source: String,
pub safe_mode: bool,
pub external_url: Option<String>,
pub internal_url: Option<String>,
}
Expand description
This object represents the Home Assistant Config
This will get a dump of the current config in Home Assistant. Fetch Config
Fields§
§latitude: f32
§longitude: f32
§elevation: u32
§unit_system: UnitSystem
§location_name: String
§time_zone: String
§components: Vec<String>
§config_dir: String
§whitelist_external_dirs: Vec<String>
§version: String
§config_source: String
§safe_mode: bool
§external_url: Option<String>
§internal_url: Option<String>
Trait Implementations§
source§impl Debug for HassConfig
impl Debug for HassConfig
source§impl<'de> Deserialize<'de> for HassConfig
impl<'de> Deserialize<'de> for HassConfig
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 Display for HassConfig
impl Display for HassConfig
source§impl PartialEq for HassConfig
impl PartialEq for HassConfig
source§fn eq(&self, other: &HassConfig) -> bool
fn eq(&self, other: &HassConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HassConfig
impl Serialize for HassConfig
impl StructuralPartialEq for HassConfig
Auto Trait Implementations§
impl RefUnwindSafe for HassConfig
impl Send for HassConfig
impl Sync for HassConfig
impl Unpin for HassConfig
impl UnwindSafe for HassConfig
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