pub struct AccessTokenOptional;Available on crate feature 
api only.Expand description
Authentication is optional, and it is performed by including an 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 AccessTokenOptional
 
impl AuthScheme for AccessTokenOptional
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<(), <AccessTokenOptional as AuthScheme>::AddAuthenticationError>
 
fn add_authentication<T>( request: &mut Request<T>, access_token: SendAccessToken<'_>, ) -> Result<(), <AccessTokenOptional 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>, <AccessTokenOptional as AuthScheme>::ExtractAuthenticationError>
 
fn extract_authentication<T>( request: &Request<T>, ) -> Result<Option<String>, <AccessTokenOptional as AuthScheme>::ExtractAuthenticationError>
Extract the data of this authentication scheme from the given incoming request. Read more
Source§impl Clone for AccessTokenOptional
 
impl Clone for AccessTokenOptional
Source§fn clone(&self) -> AccessTokenOptional
 
fn clone(&self) -> AccessTokenOptional
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 AccessTokenOptional
 
impl Debug for AccessTokenOptional
Source§impl Default for AccessTokenOptional
 
impl Default for AccessTokenOptional
Source§fn default() -> AccessTokenOptional
 
fn default() -> AccessTokenOptional
Returns the “default value” for a type. Read more
impl Copy for AccessTokenOptional
Auto Trait Implementations§
impl Freeze for AccessTokenOptional
impl RefUnwindSafe for AccessTokenOptional
impl Send for AccessTokenOptional
impl Sync for AccessTokenOptional
impl Unpin for AccessTokenOptional
impl UnwindSafe for AccessTokenOptional
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