pub struct AppserviceToken;Available on crate feature 
api only.Expand description
Authentication is required, and can only be performed for appservices, by including an
appservice access token in the Authentication http header, or access_token query
parameter.
Using the query parameter is deprecated since Matrix 1.11.
Trait Implementations§
Source§impl AuthScheme for AppserviceToken
 
impl AuthScheme for AppserviceToken
Source§type Input<'a> = SendAccessToken<'a>
 
type Input<'a> = SendAccessToken<'a>
The input necessary to generate the authentication.
Source§type AddAuthenticationError = AddRequiredTokenError
 
type AddAuthenticationError = AddRequiredTokenError
The error type returned from 
add_authentication().Source§type ExtractAuthenticationError = ExtractTokenError
 
type ExtractAuthenticationError = ExtractTokenError
The error type returned from 
extract_authentication().Source§fn add_authentication<T>(
    request: &mut Request<T>,
    access_token: SendAccessToken<'_>,
) -> Result<(), <AppserviceToken as AuthScheme>::AddAuthenticationError>
 
fn add_authentication<T>( request: &mut Request<T>, access_token: SendAccessToken<'_>, ) -> Result<(), <AppserviceToken as AuthScheme>::AddAuthenticationError>
Add this authentication scheme to the given outgoing request, if necessary. Read more
Source§fn extract_authentication<T>(
    request: &Request<T>,
) -> Result<String, <AppserviceToken as AuthScheme>::ExtractAuthenticationError>
 
fn extract_authentication<T>( request: &Request<T>, ) -> Result<String, <AppserviceToken as AuthScheme>::ExtractAuthenticationError>
Extract the data of this authentication scheme from the given incoming request. Read more
Source§impl Clone for AppserviceToken
 
impl Clone for AppserviceToken
Source§fn clone(&self) -> AppserviceToken
 
fn clone(&self) -> AppserviceToken
Returns a duplicate 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 Debug for AppserviceToken
 
impl Debug for AppserviceToken
Source§impl Default for AppserviceToken
 
impl Default for AppserviceToken
Source§fn default() -> AppserviceToken
 
fn default() -> AppserviceToken
Returns the “default value” for a type. Read more
impl Copy for AppserviceToken
Auto Trait Implementations§
impl Freeze for AppserviceToken
impl RefUnwindSafe for AppserviceToken
impl Send for AppserviceToken
impl Sync for AppserviceToken
impl Unpin for AppserviceToken
impl UnwindSafe for AppserviceToken
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