pub struct Expose {
pub cluster: u16,
pub attribute: u16,
pub field: &'static str,
pub convert: Convert,
pub unit: Option<&'static str>,
pub device_class: Option<&'static str>,
pub state_class: Option<&'static str>,
pub component: Component,
pub diagnostic: bool,
}Expand description
One attribute as a field.
Fields§
§cluster: u16Cluster.
attribute: u16Attribute.
field: &'static strJSON field name.
convert: ConvertConversion.
unit: Option<&'static str>Unit.
device_class: Option<&'static str>Home Assistant device class.
state_class: Option<&'static str>Home Assistant state class.
component: ComponentHome Assistant entity type.
diagnostic: boolA diagnostic entity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expose
impl RefUnwindSafe for Expose
impl Send for Expose
impl Sync for Expose
impl Unpin for Expose
impl UnsafeUnpin for Expose
impl UnwindSafe for Expose
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