Removes the TUI in favor of event based logging #15
1 changed files with 11 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
use lemmy_api_common::sensitive::Sensitive;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use crate::config::PostBody::Description;
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub(crate) struct Config {
|
||||
pub(crate) instance: String,
|
||||
pub(crate) username: String,
|
||||
pub(crate) password: String,
|
||||
username: String,
|
||||
password: String,
|
||||
pub(crate) status_post_url: Option<String>,
|
||||
pub(crate) config_reload_seconds: u32,
|
||||
pub(crate) protected_communities: Vec<String>,
|
||||
|
@ -38,6 +39,14 @@ impl Config {
|
|||
});
|
||||
cfg
|
||||
}
|
||||
|
||||
pub(crate) fn get_username(&self) -> Sensitive<String> {
|
||||
Sensitive::new(self.username.clone())
|
||||
}
|
||||
|
||||
pub(crate) fn get_password(&self) -> Sensitive<String> {
|
||||
Sensitive::new(self.password.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
|
|
Loading…
Reference in a new issue