rust-nex/src/nex/account.rs

18 lines
305 B
Rust
Raw Normal View History

2025-02-01 17:18:52 +01:00
pub struct Account{
2025-02-01 17:18:52 +01:00
pid: u32,
username: Box<str>,
2025-02-01 17:18:52 +01:00
kerbros_password: Box<str>,
2025-02-01 17:18:52 +01:00
}
impl Account{
pub fn new(pid: u32, username: &str, passwd: &str) -> Self{
2025-02-01 17:18:52 +01:00
Self{
kerbros_password: passwd.into(),
username: username.into(),
2025-02-01 17:18:52 +01:00
pid
}
}
}