pub enum KnownRoomVersionId {
V1,
V2,
V3,
V4,
V5,
V6,
V7,
V8,
V9,
V10,
V11,
V12,
}Expand description
An alternative to [ruma::RoomVersionId], including only types supported by
arminius-lib-rooms
The original [ruma::RoomVersionId] allows expressing types which are
unknown, and therefore have no [RoomVersionRules], an error case we are
not interested in handling after an event is constructed.
Variants§
Implementations§
Source§impl KnownRoomVersionId
impl KnownRoomVersionId
Sourcepub(crate) const fn events_reference_format(
self,
) -> KnownEventsReferenceFormatVersion
pub(crate) const fn events_reference_format( self, ) -> KnownEventsReferenceFormatVersion
Returns the KnownEventsReferenceFormatVersion associated with the
event. Guaranteed to be the same as
self.rules().events_reference_format
Trait Implementations§
Source§impl Clone for KnownRoomVersionId
impl Clone for KnownRoomVersionId
Source§fn clone(&self) -> KnownRoomVersionId
fn clone(&self) -> KnownRoomVersionId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KnownRoomVersionId
Source§impl Debug for KnownRoomVersionId
impl Debug for KnownRoomVersionId
Source§impl Default for KnownRoomVersionId
impl Default for KnownRoomVersionId
Source§fn default() -> KnownRoomVersionId
fn default() -> KnownRoomVersionId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnownRoomVersionId
impl<'de> Deserialize<'de> for KnownRoomVersionId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KnownRoomVersionId
impl Display for KnownRoomVersionId
impl Eq for KnownRoomVersionId
Source§impl From<KnownRoomVersionId> for RoomVersionId
impl From<KnownRoomVersionId> for RoomVersionId
Source§fn from(value: KnownRoomVersionId) -> Self
fn from(value: KnownRoomVersionId) -> Self
Converts to this type from the input type.
Source§impl From<KnownRoomVersionId> for PduFormat
impl From<KnownRoomVersionId> for PduFormat
Source§fn from(value: KnownRoomVersionId) -> Self
fn from(value: KnownRoomVersionId) -> Self
Converts to this type from the input type.
Source§impl FromStr for KnownRoomVersionId
impl FromStr for KnownRoomVersionId
Source§impl PartialEq for KnownRoomVersionId
impl PartialEq for KnownRoomVersionId
Source§fn eq(&self, other: &KnownRoomVersionId) -> bool
fn eq(&self, other: &KnownRoomVersionId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KnownRoomVersionId
impl Serialize for KnownRoomVersionId
impl StructuralPartialEq for KnownRoomVersionId
Auto Trait Implementations§
impl Freeze for KnownRoomVersionId
impl RefUnwindSafe for KnownRoomVersionId
impl Send for KnownRoomVersionId
impl Sync for KnownRoomVersionId
impl Unpin for KnownRoomVersionId
impl UnsafeUnpin for KnownRoomVersionId
impl UnwindSafe for KnownRoomVersionId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.