identifiers: Make RoomVersionId non_exhaustive
This commit is contained in:
parent
dc7e0091f6
commit
fd310e5b6e
@ -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
|
/// 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()`.
|
/// check for them using one of `RoomVersionId`s `PartialEq` implementations or through `.as_str()`.
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, DisplayAsRefStr)]
|
#[derive(Clone, Debug, PartialEq, Eq, Hash, DisplayAsRefStr)]
|
||||||
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
pub enum RoomVersionId {
|
pub enum RoomVersionId {
|
||||||
/// A version 1 room.
|
/// A version 1 room.
|
||||||
Version1,
|
Version1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user