Struct hass_rs::types::HassEntity
source · pub struct HassEntity {
pub entity_id: String,
pub last_changed: String,
pub state: String,
pub attributes: Value,
pub last_updated: String,
pub context: Option<Context>,
}
Expand description
This object represents the Home Assistant Entity
Fields§
§entity_id: String
§last_changed: String
§state: String
§attributes: Value
§last_updated: String
§context: Option<Context>
Trait Implementations§
source§impl Clone for HassEntity
impl Clone for HassEntity
source§fn clone(&self) -> HassEntity
fn clone(&self) -> HassEntity
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 HassEntity
impl Debug for HassEntity
source§impl<'de> Deserialize<'de> for HassEntity
impl<'de> Deserialize<'de> for HassEntity
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 HassEntity
impl Display for HassEntity
source§impl PartialEq for HassEntity
impl PartialEq for HassEntity
source§fn eq(&self, other: &HassEntity) -> bool
fn eq(&self, other: &HassEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HassEntity
impl Serialize for HassEntity
impl StructuralPartialEq for HassEntity
Auto Trait Implementations§
impl RefUnwindSafe for HassEntity
impl Send for HassEntity
impl Sync for HassEntity
impl Unpin for HassEntity
impl UnwindSafe for HassEntity
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