|
|
@ -45,11 +45,11 @@ fn main() { |
|
|
|
let user0 = User::new("Didier".to_string(), AccessLevel::Admin); |
|
|
|
let user0 = User::new("Didier".to_string(), AccessLevel::Admin); |
|
|
|
println!("{:?}", check_user_name(&user0)); |
|
|
|
println!("{:?}", check_user_name(&user0)); |
|
|
|
|
|
|
|
|
|
|
|
let user2 = User::new("Mary".to_string(), AccessLevel::Normal); |
|
|
|
let user1 = User::new("Mary".to_string(), AccessLevel::Normal); |
|
|
|
println!("{:?}", check_user_name(&user2)); |
|
|
|
println!("{:?}", check_user_name(&user1)); |
|
|
|
|
|
|
|
|
|
|
|
let user3 = User::new("John".to_string(), AccessLevel::Guest); |
|
|
|
let user2 = User::new("John".to_string(), AccessLevel::Guest); |
|
|
|
println!("{:?}", check_user_name(&user3)); |
|
|
|
println!("{:?}", check_user_name(&user2)); |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|