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