Enum ruma_api::AuthScheme [−][src]
pub enum AuthScheme { None, AccessToken, ServerSignatures, QueryOnlyAccessToken, }
Expand description
Authentication scheme used by the endpoint.
Variants
Expand description
No authentication is performed.
Expand description
Authentication is performed by including an access token in the Authentication
http
header, or an access_token
query parameter.
It is recommended to use the header over the query parameter.
Expand description
Authentication is performed by including X-Matrix signatures in the request headers, as defined in the federation API.
Expand description
Authentication is performed by setting the access_token
query parameter.
Trait Implementations
impl Clone for AuthScheme
[src]
impl Clone for AuthScheme
[src]fn clone(&self) -> AuthScheme
[src]
fn clone(&self) -> AuthScheme
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AuthScheme
[src]
impl Debug for AuthScheme
[src]impl PartialEq<AuthScheme> for AuthScheme
[src]
impl PartialEq<AuthScheme> for AuthScheme
[src]impl Copy for AuthScheme
[src]
impl Eq for AuthScheme
[src]
impl StructuralEq for AuthScheme
[src]
impl StructuralPartialEq for AuthScheme
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthScheme
impl Send for AuthScheme
impl Sync for AuthScheme
impl Unpin for AuthScheme
impl UnwindSafe for AuthScheme
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more