mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-07-22 17:18:35 +00:00
???
This commit is contained in:
parent
4c726f4a68
commit
734e84c668
3 changed files with 25 additions and 23 deletions
|
@ -57,13 +57,12 @@ pub struct Config {
|
|||
pub allow_room_creation: bool,
|
||||
#[serde(default = "true_fn")]
|
||||
pub allow_unstable_room_versions: bool,
|
||||
#[serde(default = "Vec::new")]
|
||||
pub default_rooms: Vec<OwnedRoomOrAliasId>,
|
||||
pub default_rooms_join_reason: Option<String>,
|
||||
#[serde(default = "default_default_room_version")]
|
||||
pub default_room_version: RoomVersionId,
|
||||
#[serde(default)]
|
||||
pub well_known: WellKnownConfig,
|
||||
#[serde(default)]
|
||||
pub default_rooms: DefaultRoomsConfig,
|
||||
#[serde(default = "false_fn")]
|
||||
pub allow_jaeger: bool,
|
||||
#[serde(default = "false_fn")]
|
||||
|
@ -104,6 +103,12 @@ pub struct WellKnownConfig {
|
|||
pub server: Option<OwnedServerName>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Default)]
|
||||
pub struct DefaultRoomsConfig {
|
||||
pub rooms: Vec<OwnedRoomOrAliasId>,
|
||||
pub join_reason: Option<String>,
|
||||
}
|
||||
|
||||
const DEPRECATED_KEYS: &[&str] = &["cache_capacity"];
|
||||
|
||||
impl Config {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue