17 lines
383 B
Rust
17 lines
383 B
Rust
use matrix_sdk::identifiers::UserId;
|
|
use serde::{
|
|
de::{self, Deserializer, Visitor},
|
|
Deserialize,
|
|
};
|
|
use std::{collections::BTreeMap, convert::TryFrom};
|
|
use url::Url;
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
pub struct Config {
|
|
pub homeserver_url: Url,
|
|
pub user_id: String,
|
|
pub password: String,
|
|
pub device_name: Option<String>,
|
|
pub memes: BTreeMap<String, u32>,
|
|
}
|