pub enum KnownEventsReferenceFormatVersion {
V1,
V2,
}Expand description
An alternative to
[ruma::room_version_rules::EventsReferenceFormatVersion], including only
types supported by arminius-lib-rooms
The original is marked as non_exhaustive, something in which we are not interested
Variants§
Trait Implementations§
Source§impl Clone for KnownEventsReferenceFormatVersion
impl Clone for KnownEventsReferenceFormatVersion
Source§fn clone(&self) -> KnownEventsReferenceFormatVersion
fn clone(&self) -> KnownEventsReferenceFormatVersion
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 KnownEventsReferenceFormatVersion
Source§impl<'de> Deserialize<'de> for KnownEventsReferenceFormatVersion
impl<'de> Deserialize<'de> for KnownEventsReferenceFormatVersion
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
impl Eq for KnownEventsReferenceFormatVersion
Source§impl From<KnownEventsReferenceFormatVersion> for EventsReferenceFormatVersion
impl From<KnownEventsReferenceFormatVersion> for EventsReferenceFormatVersion
Source§fn from(val: KnownEventsReferenceFormatVersion) -> Self
fn from(val: KnownEventsReferenceFormatVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KnownEventsReferenceFormatVersion
impl PartialEq for KnownEventsReferenceFormatVersion
Source§fn eq(&self, other: &KnownEventsReferenceFormatVersion) -> bool
fn eq(&self, other: &KnownEventsReferenceFormatVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KnownEventsReferenceFormatVersion
Auto Trait Implementations§
impl Freeze for KnownEventsReferenceFormatVersion
impl RefUnwindSafe for KnownEventsReferenceFormatVersion
impl Send for KnownEventsReferenceFormatVersion
impl Sync for KnownEventsReferenceFormatVersion
impl Unpin for KnownEventsReferenceFormatVersion
impl UnsafeUnpin for KnownEventsReferenceFormatVersion
impl UnwindSafe for KnownEventsReferenceFormatVersion
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.