identifiers: Make RoomVersionId non_exhaustive

This commit is contained in:
Devin Ragotzy 2021-06-29 19:26:40 -04:00 committed by Jonas Platte
parent dc7e0091f6
commit fd310e5b6e
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -22,6 +22,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
/// written are represented by a hidden enum variant. You can still construct them the same, and
/// check for them using one of `RoomVersionId`s `PartialEq` implementations or through `.as_str()`.
#[derive(Clone, Debug, PartialEq, Eq, Hash, DisplayAsRefStr)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub enum RoomVersionId {
/// A version 1 room.
Version1,