From 3e2c3341ee4fd540126f822ef23aa442508cf4b6 Mon Sep 17 00:00:00 2001 From: boasting-squirrel Date: Wed, 13 Feb 2019 19:13:34 +0100 Subject: Added some docstrings --- src/auth.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/auth.rs') diff --git a/src/auth.rs b/src/auth.rs index e39305c..7b72b21 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -4,12 +4,14 @@ use actix_web::{HttpRequest, HttpResponse, Result}; pub struct Auth; +/// HTTP Basic authentication errors pub enum BasicAuthError { Base64DecodeError, InvalidUsernameFormat, } #[derive(Clone, Debug)] +/// HTTP Basic authentication parameters pub struct BasicAuthParams { pub username: String, pub password: String, -- cgit v1.2.3