1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug, Eq, PartialEq, Clone, Hash)] pub struct Auth { pub username: String, pub password: String, } impl Auth { pub fn new(username: String, password: String) -> Self { Self { username, password } } }