Struct matrix_sdk::matrix_auth::MatrixSessionTokens
source · pub struct MatrixSessionTokens {
pub access_token: String,
pub refresh_token: Option<String>,
}
Expand description
The tokens for a user session obtained with the native Matrix authentication API.
Fields§
§access_token: String
The access token used for this session.
refresh_token: Option<String>
The token used for refreshing the access token, if any.
Trait Implementations§
source§impl Clone for MatrixSessionTokens
impl Clone for MatrixSessionTokens
source§fn clone(&self) -> MatrixSessionTokens
fn clone(&self) -> MatrixSessionTokens
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for MatrixSessionTokens
impl<'de> Deserialize<'de> for MatrixSessionTokens
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 Hash for MatrixSessionTokens
impl Hash for MatrixSessionTokens
source§impl PartialEq for MatrixSessionTokens
impl PartialEq for MatrixSessionTokens
source§fn eq(&self, other: &MatrixSessionTokens) -> bool
fn eq(&self, other: &MatrixSessionTokens) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MatrixSessionTokens
impl Serialize for MatrixSessionTokens
impl Eq for MatrixSessionTokens
impl StructuralEq for MatrixSessionTokens
impl StructuralPartialEq for MatrixSessionTokens
Auto Trait Implementations§
impl RefUnwindSafe for MatrixSessionTokens
impl Send for MatrixSessionTokens
impl Sync for MatrixSessionTokens
impl Unpin for MatrixSessionTokens
impl UnwindSafe for MatrixSessionTokens
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
§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.