RFC links tweak

This commit is contained in:
Curtis McEnroe 2015-12-21 22:13:15 -05:00
parent 527ab2deed
commit 38d81ed931
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ use super::{Token, Lifetime};
/// The bearer token type. /// The bearer token type.
/// ///
/// See [RFC6750](http://tools.ietf.org/html/rfc6750). /// See [RFC 6750](http://tools.ietf.org/html/rfc6750).
pub struct Bearer<L: Lifetime> { pub struct Bearer<L: Lifetime> {
access_token: String, access_token: String,
scope: Option<String>, scope: Option<String>,

View File

@ -1,17 +1,17 @@
//! Tokens. //! Tokens.
//! //!
//! Access token types are abstracted through the `Token` trait. See //! Access token types are abstracted through the `Token` trait. See
//! [RFC6749, section 7.1](http://tools.ietf.org/html/rfc6749#section-7.1). //! [RFC 6749, section 7.1](http://tools.ietf.org/html/rfc6749#section-7.1).
//! //!
//! Expiring and non-expiring tokens are abstracted through the `Lifetime` trait. //! Expiring and non-expiring tokens are abstracted through the `Lifetime` trait.
/// OAuth 2.0 tokens. /// OAuth 2.0 tokens.
/// ///
/// See [RFC6749, section 5](http://tools.ietf.org/html/rfc6749#section-5). /// See [RFC 6749, section 5](http://tools.ietf.org/html/rfc6749#section-5).
pub trait Token<L: Lifetime> { pub trait Token<L: Lifetime> {
/// Returns the access token. /// Returns the access token.
/// ///
/// See [RFC6749, section 1.4](http://tools.ietf.org/html/rfc6749#section-1.4). /// See [RF C6749, section 1.4](http://tools.ietf.org/html/rfc6749#section-1.4).
fn access_token(&self) -> &str; fn access_token(&self) -> &str;
/// Returns the scope, if available. /// Returns the scope, if available.