Enum ruma_identifiers::RoomVersionId [−][src]
pub enum RoomVersionId {
Version1,
Version2,
Version3,
Version4,
Version5,
Version6,
// some variants omitted
}Expand description
A Matrix room version ID.
A RoomVersionId can be or converted or deserialized from a string slice, and can be converted
or serialized back into a string as needed.
assert_eq!(RoomVersionId::try_from("1").unwrap().as_ref(), "1");
Any string consisting of at minimum 1, at maximum 32 unicode codepoints is a room version ID.
Custom room versions or ones that were introduced into the specification after this code was
written are represented by a hidden enum variant. You can still construct them the same, and
check for them using one of RoomVersionIds PartialEq implementations or through .as_str().
Variants
A version 1 room.
A version 2 room.
A version 3 room.
A version 4 room.
A version 5 room.
A version 6 room.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Compare the two given room version IDs by comparing their string representations.
Please be aware that room version IDs don’t have a defined ordering in the Matrix
specification. This implementation only exists to be able to use RoomVersionIds or
types containing RoomVersionIds as BTreeMap keys.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Compare the two given room version IDs by comparing their string representations.
Please be aware that room version IDs don’t have a defined ordering in the Matrix
specification. This implementation only exists to be able to use RoomVersionIds or
types containing RoomVersionIds as BTreeMap keys.
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomVersionIdimpl Send for RoomVersionIdimpl Sync for RoomVersionIdimpl Unpin for RoomVersionIdimpl UnwindSafe for RoomVersionIdBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V