auth_service_dhz 0.1.9

A simple authentication service example with login and database connection.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use auth_service_dhz::{Credentials};
fn main() {
    let mut creds = Credentials {
        username: String::from("user"),
        password: String::from("password"),
        is_login: false,
    };

    auth_service_dhz::authenticate(&mut creds);

    println!(
        "After authentication: username={}, is_login={}",
        creds.username, creds.is_login
    );

}