config.rs (361B)
1 use mrsbfh::config::ConfigDerive; 2 use serde::{Deserialize, Serialize}; 3 use std::borrow::Cow; 4 5 #[derive(Debug, PartialEq, Serialize, Deserialize, Clone, ConfigDerive)] 6 pub struct Config<'a> { 7 pub homeserver_url: Cow<'a, str>, 8 pub mxid: Cow<'a, str>, 9 pub password: Cow<'a, str>, 10 pub store_path: Cow<'a, str>, 11 pub session_path: Cow<'a, str>, 12 }