pub enum TestRoomAlias {
Canonical,
Alt,
}Expand description
A Matrix test room alias.
This can be converted to the following types with .into():
&'static RoomAliasIdOwnedRoomAliasId&'static RoomOrAliasIdOwnedRoomOrAliasId
It implements PartialEq with all the ID types above, as well as with
serde_json::Value to use with the assert_eq! macro.
It implements Serialize and Into<String> to use it with the json!
macro.
It implements Hash and Equivalent<OwnedRoomAliasId> as well to be able
to use it with methods like IndexMap::get() or IndexMap::contains_key().
It can also be converted to a borrowed string with .as_str() to use it
with methods like HashMap::get() or HashSet::contains().
Variants§
Canonical
A canonical room alias, #canonical:localhost.
Alt
An alternate room alias, #alt_alias:localhost.
Implementations§
Trait Implementations§
Source§impl Clone for TestRoomAlias
impl Clone for TestRoomAlias
impl Copy for TestRoomAlias
Source§impl Debug for TestRoomAlias
impl Debug for TestRoomAlias
Source§impl Display for TestRoomAlias
impl Display for TestRoomAlias
Source§impl Equivalent<OwnedRoomAliasId> for TestRoomAlias
impl Equivalent<OwnedRoomAliasId> for TestRoomAlias
Source§fn equivalent(&self, key: &OwnedRoomAliasId) -> bool
fn equivalent(&self, key: &OwnedRoomAliasId) -> bool
Compare self to
key and return true if they are equal.Source§impl From<TestRoomAlias> for OwnedRoomAliasId
impl From<TestRoomAlias> for OwnedRoomAliasId
Source§fn from(alias: TestRoomAlias) -> Self
fn from(alias: TestRoomAlias) -> Self
Converts to this type from the input type.
Source§impl From<TestRoomAlias> for &'static RoomAliasId
impl From<TestRoomAlias> for &'static RoomAliasId
Source§fn from(alias: TestRoomAlias) -> Self
fn from(alias: TestRoomAlias) -> Self
Converts to this type from the input type.
Source§impl From<TestRoomAlias> for OwnedRoomOrAliasId
impl From<TestRoomAlias> for OwnedRoomOrAliasId
Source§fn from(alias: TestRoomAlias) -> Self
fn from(alias: TestRoomAlias) -> Self
Converts to this type from the input type.
Source§impl From<TestRoomAlias> for &'static RoomOrAliasId
impl From<TestRoomAlias> for &'static RoomOrAliasId
Source§fn from(alias: TestRoomAlias) -> Self
fn from(alias: TestRoomAlias) -> Self
Converts to this type from the input type.
Source§impl From<TestRoomAlias> for String
impl From<TestRoomAlias> for String
Source§fn from(alias: TestRoomAlias) -> Self
fn from(alias: TestRoomAlias) -> Self
Converts to this type from the input type.
Source§impl Hash for TestRoomAlias
impl Hash for TestRoomAlias
Source§impl PartialEq<&OwnedRoomAliasId> for TestRoomAlias
impl PartialEq<&OwnedRoomAliasId> for TestRoomAlias
Source§impl PartialEq<&RoomAliasId> for TestRoomAlias
impl PartialEq<&RoomAliasId> for TestRoomAlias
Source§impl PartialEq<OwnedRoomAliasId> for TestRoomAlias
impl PartialEq<OwnedRoomAliasId> for TestRoomAlias
Source§impl PartialEq<TestRoomAlias> for OwnedRoomAliasId
impl PartialEq<TestRoomAlias> for OwnedRoomAliasId
Source§impl PartialEq<TestRoomAlias> for &OwnedRoomAliasId
impl PartialEq<TestRoomAlias> for &OwnedRoomAliasId
Source§impl PartialEq<TestRoomAlias> for &RoomAliasId
impl PartialEq<TestRoomAlias> for &RoomAliasId
Source§impl PartialEq<TestRoomAlias> for Value
impl PartialEq<TestRoomAlias> for Value
Source§impl PartialEq<Value> for TestRoomAlias
impl PartialEq<Value> for TestRoomAlias
Auto Trait Implementations§
impl Freeze for TestRoomAlias
impl RefUnwindSafe for TestRoomAlias
impl Send for TestRoomAlias
impl Sync for TestRoomAlias
impl Unpin for TestRoomAlias
impl UnsafeUnpin for TestRoomAlias
impl UnwindSafe for TestRoomAlias
Blanket Implementations§
impl<T> AsyncTraitDeps for Twhere
T: Debug + SendOutsideWasm + SyncOutsideWasm,
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> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type