aboutsummaryrefslogtreecommitdiff
path: root/src/command_policy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_policy.rs')
-rw-r--r--src/command_policy.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/command_policy.rs b/src/command_policy.rs
index e5859bb..a1bb3bf 100644
--- a/src/command_policy.rs
+++ b/src/command_policy.rs
@@ -63,8 +63,7 @@
63/// # } 63/// # }
64/// # async fn turn_on_motor() -> Result<(), ()> { Ok(()) } 64/// # async fn turn_on_motor() -> Result<(), ()> { Ok(()) }
65/// ``` 65/// ```
66#[derive(Debug, Clone, Copy, PartialEq, Eq)] 66#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
67#[derive(Default)]
68pub enum CommandPolicy { 67pub enum CommandPolicy {
69 /// Automatically publish the entity's state when a command is received. 68 /// Automatically publish the entity's state when a command is received.
70 #[default] 69 #[default]
@@ -73,4 +72,3 @@ pub enum CommandPolicy {
73 /// Do not automatically publish state. The application must manually update the state. 72 /// Do not automatically publish state. The application must manually update the state.
74 Manual, 73 Manual,
75} 74}
76