pub enum TestAuthToken {
AccessDefault,
AccessPrev,
AccessAlt1,
AccessAlt2,
RefreshDefault,
RefreshPrev,
RefreshAlt1,
RefreshAlt2,
}Expand description
A Matrix test authentication token.
This is meant to be used for access tokens and refresh tokens with the authentication APIs.
This can be converted to the following types with .into():
&'static strString
It implements PartialEq with all the types above, as well as with
serde_json::Value to use with the assert_eq! macro.
It implements Serialize to use it with the json! macro.
Variants§
AccessDefault
The default access token, 1234.
AccessPrev
The previous access token, prev-access-token.
AccessAlt1
The first alternate access token, 5678.
AccessAlt2
The second alternate access token, 9999.
RefreshDefault
The default refresh token, ZYXWV.
RefreshPrev
The previous refresh token, prev-refresh-token.
RefreshAlt1
The first alternate refresh token, UTSRQ.
RefreshAlt2
The second alternate refresh token, PONML.
Implementations§
Trait Implementations§
Source§impl Clone for TestAuthToken
impl Clone for TestAuthToken
impl Copy for TestAuthToken
Source§impl Debug for TestAuthToken
impl Debug for TestAuthToken
Source§impl Display for TestAuthToken
impl Display for TestAuthToken
Source§impl From<TestAuthToken> for &'static str
impl From<TestAuthToken> for &'static str
Source§fn from(token: TestAuthToken) -> Self
fn from(token: TestAuthToken) -> Self
Converts to this type from the input type.
Source§impl From<TestAuthToken> for String
impl From<TestAuthToken> for String
Source§fn from(token: TestAuthToken) -> Self
fn from(token: TestAuthToken) -> Self
Converts to this type from the input type.
Source§impl PartialEq<&String> for TestAuthToken
impl PartialEq<&String> for TestAuthToken
Source§impl PartialEq<&str> for TestAuthToken
impl PartialEq<&str> for TestAuthToken
Source§impl PartialEq<String> for TestAuthToken
impl PartialEq<String> for TestAuthToken
Source§impl PartialEq<TestAuthToken> for String
impl PartialEq<TestAuthToken> for String
Source§impl PartialEq<TestAuthToken> for &String
impl PartialEq<TestAuthToken> for &String
Source§impl PartialEq<TestAuthToken> for &str
impl PartialEq<TestAuthToken> for &str
Source§impl PartialEq<TestAuthToken> for Value
impl PartialEq<TestAuthToken> for Value
Source§impl PartialEq<Value> for TestAuthToken
impl PartialEq<Value> for TestAuthToken
Auto Trait Implementations§
impl Freeze for TestAuthToken
impl RefUnwindSafe for TestAuthToken
impl Send for TestAuthToken
impl Sync for TestAuthToken
impl Unpin for TestAuthToken
impl UnsafeUnpin for TestAuthToken
impl UnwindSafe for TestAuthToken
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,
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