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