mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
fix doc warnings
This commit is contained in:
parent
ecd2016c09
commit
61f16c609a
@ -26,7 +26,7 @@ pub struct ActixSettings {
|
|||||||
/// Marker of intended deployment environment.
|
/// Marker of intended deployment environment.
|
||||||
pub mode: Mode,
|
pub mode: Mode,
|
||||||
|
|
||||||
/// True if the [`Compress`](actix_web::middleware::Compress) middleware should be enabled.
|
/// True if the `Compress` middleware should be enabled.
|
||||||
pub enable_compression: bool,
|
pub enable_compression: bool,
|
||||||
|
|
||||||
/// True if the [`Logger`](actix_web::middleware::Logger) middleware should be enabled.
|
/// True if the [`Logger`](actix_web::middleware::Logger) middleware should be enabled.
|
||||||
|
@ -2,7 +2,7 @@ use super::AuthenticationError;
|
|||||||
use crate::headers::www_authenticate::Challenge;
|
use crate::headers::www_authenticate::Challenge;
|
||||||
|
|
||||||
/// Trait implemented for types that provides configuration for the authentication
|
/// Trait implemented for types that provides configuration for the authentication
|
||||||
/// [extractors](super::AuthExtractor).
|
/// [extractors](crate::extractors).
|
||||||
pub trait AuthExtractorConfig {
|
pub trait AuthExtractorConfig {
|
||||||
/// Associated challenge type.
|
/// Associated challenge type.
|
||||||
type Inner: Challenge;
|
type Inner: Challenge;
|
||||||
|
@ -9,9 +9,10 @@ use crate::headers::authorization::{errors::ParseError, scheme::Scheme};
|
|||||||
|
|
||||||
/// Credentials for `Bearer` authentication scheme, defined in [RFC 6750].
|
/// Credentials for `Bearer` authentication scheme, defined in [RFC 6750].
|
||||||
///
|
///
|
||||||
/// Should be used in combination with [`Authorization`](super::Authorization) header.
|
/// Should be used in combination with [`Authorization`] header.
|
||||||
///
|
///
|
||||||
/// [RFC 6750]: https://tools.ietf.org/html/rfc6750
|
/// [RFC 6750]: https://tools.ietf.org/html/rfc6750
|
||||||
|
/// [`Authorization`]: crate::headers::authorization::Authorization
|
||||||
#[derive(Clone, Eq, Ord, PartialEq, PartialOrd)]
|
#[derive(Clone, Eq, Ord, PartialEq, PartialOrd)]
|
||||||
pub struct Bearer {
|
pub struct Bearer {
|
||||||
token: Cow<'static, str>,
|
token: Cow<'static, str>,
|
||||||
|
Loading…
Reference in New Issue
Block a user