pub struct SwitchConfig {
pub common: EntityCommonConfig,
pub class: SwitchClass,
pub command_policy: CommandPolicy,
}Expand description
Configuration for a switch entity.
See CommandPolicy for details on how commands are handled.
Fields§
§common: EntityCommonConfig§class: SwitchClass§command_policy: CommandPolicyTrait Implementations§
Source§impl Debug for SwitchConfig
impl Debug for SwitchConfig
Source§impl Default for SwitchConfig
impl Default for SwitchConfig
Source§fn default() -> SwitchConfig
fn default() -> SwitchConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SwitchConfig
impl RefUnwindSafe for SwitchConfig
impl Send for SwitchConfig
impl Sync for SwitchConfig
impl Unpin for SwitchConfig
impl UnwindSafe for SwitchConfig
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