User-Trait
This library provides basic traits and helper structures for user authentication in Rust. It includes functionality for user identification, authentication, and storage, aiming to provide a simple enough interface for user authentication.
Features
- UserTrait: A trait defining methods for user identification and authentication.
- UserBox: A wrapper for a boxed user implementing the
Usertrait, with support for hashing and ordering. - UserVec: A vector of
UserBoxwith additional functionality for sorting and hashing. - UserAuthenticator: A trait for user authentication.
- PlainText: A simple implementation of a user with plaintext username and password.
- UsersMap: A map for storing users, implementing
UserAuthenticator.
Usage
To use this library, add it as a dependency in your Cargo.toml:
[]
= "0.1.0"
use ;
Similar Projects
License
This project is licensed under the MIT OR Apache-2.0 License.