Impl Hash for BulbId

This commit is contained in:
2022-10-03 08:31:42 +02:00
parent d6a25648ce
commit 0c8f09e825
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,7 @@ use std::ops::Deref;
use std::str::FromStr;
/// The mqtt publish id of the bulb
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd)]
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct BulbId(pub String);
#[derive(Serialize, Deserialize, Default, Debug, Clone)]