From b1193a288352411cd526cc47cabe0e3316635957 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sun, 7 Jun 2020 17:22:44 +0200 Subject: [PATCH] identifiers: Add DeviceId, DeviceIdRef to the crate root --- ruma-identifiers/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ruma-identifiers/src/lib.rs b/ruma-identifiers/src/lib.rs index 14dfa9ae..17d33b1e 100644 --- a/ruma-identifiers/src/lib.rs +++ b/ruma-identifiers/src/lib.rs @@ -36,6 +36,16 @@ pub mod room_version_id; pub mod server_key_id; pub mod user_id; +/// An owned device ID. +/// +/// While this is currently just a `String`, that will likely change in the future. +pub use device_id::DeviceId; + +/// A reference to a device ID. +/// +/// While this is currently just a string slice, that will likely change in the future. +pub type DeviceIdRef<'a> = &'a str; + /// An owned event ID. /// /// Can be created via `new` (if the `rand` feature is enabled) and `TryFrom` +