1 2 3 4 5 6 7 8 9 10 11 12
use ayan_learn_crate::{authenticate, Credentials}; fn main() { let user = Credentials { username: String::from("user1"), password: String::from("password123"), }; authenticate(user); // You can now use 'user' directly }