Files
smart-home-in-rust-with-hom…/home-assistant/src/object_id.rs

9 lines
260 B
Rust

use python_utils::{FromPyFromStr, ToStrToPy};
use super::slug::Slug;
pub use super::slug::SlugParsingError as ObjectIdParsingError;
#[derive(Debug, Clone, derive_more::FromStr, derive_more::Display, FromPyFromStr, ToStrToPy)]
pub struct ObjectId(pub Slug);