diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-13 18:13:34 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-13 18:13:34 +0000 |
commit | 3e2c3341ee4fd540126f822ef23aa442508cf4b6 (patch) | |
tree | c29d8f7f3d120b6a01b15c848af48fba356e307d /src/auth.rs | |
parent | Removed config.rs and put back actix config in main.rs (diff) | |
download | miniserve-3e2c3341ee4fd540126f822ef23aa442508cf4b6.tar.gz miniserve-3e2c3341ee4fd540126f822ef23aa442508cf4b6.zip |
Added some docstrings
Diffstat (limited to '')
-rw-r--r-- | src/auth.rs | 2 |
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, |