use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum Privilege {
None,
WithSudo,
WithSudoRs,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Credentials {
username: String,
password: String,
}
impl Credentials {
pub fn from(username: &str, password: &str) -> Credentials {
Credentials {
username: username.to_string(),
password: password.to_string(),
}
}
pub fn username(&self) -> &str {
&self.username
}
pub fn password(&self) -> &str {
&self.password
}
}