# random_user This library provides a convenient random user generator using the api from Built with [reqwest](https://docs.rs/reqwest/latest/reqwest/) and using async. ## Examples ### Generate one random user: ```rust use random_user::UserGenerator; #[tokio::main] async fn main() { let generator = UserGenerator::new(); let user = generator .fetch_one() .await .expect("Error fetching random user"); println!("{:#?}", user); } ``` ### Generate multiple random users with filters: ```rust let generator = UserGenerator::new(); // Get 5 Australian women with complex passwords let users = generator .get() .gender(Gender::Female) .nationality(Nationality::Australian) .password("upper,lower,special,12-24") .fetch(5) .await? for user in users { println!("Name: {}, Password: {}", user.name.first, user.login.password); } ```