aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-02-13 18:13:34 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-02-13 18:13:34 +0000
commit3e2c3341ee4fd540126f822ef23aa442508cf4b6 (patch)
treec29d8f7f3d120b6a01b15c848af48fba356e307d /src/auth.rs
parentRemoved config.rs and put back actix config in main.rs (diff)
downloadminiserve-3e2c3341ee4fd540126f822ef23aa442508cf4b6.tar.gz
miniserve-3e2c3341ee4fd540126f822ef23aa442508cf4b6.zip
Added some docstrings
Diffstat (limited to '')
-rw-r--r--src/auth.rs2
1 files changed, 2 insertions, 0 deletions
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,