identifiers: Add DeviceId, DeviceIdRef to the crate root

This commit is contained in:
Jonas Platte 2020-06-07 17:22:44 +02:00
parent abf8eafe0e
commit b1193a2883
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -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<String>` +