pub struct ModuleConfig {
pub room_map: HashMap<String, String>,
pub presence_map: HashMap<String, Vec<String>>,
pub presence_interval: u64,
pub empty_response: String,
pub keywords: Vec<String>,
pub presence_db: String,
pub keywords_heatmap: Vec<String>,
pub heatmap_map: HashMap<String, String>,
pub heatmap_tmp_dir: String,
}
Expand description
SpaceAPI
module configuration
Fields§
§room_map: HashMap<String, String>
Room to SpaceAPI
endpoint map. special value “default” will be used when a room specific endpoint.
presence_map: HashMap<String, Vec<String>>
Map of SpaceAPI
endpoints to a list of rooms.
presence_interval: u64
How often should the presence observer check for presence changes, in seconds. Default is 30.
empty_response: String
String to reply with when queried for currently present members, and no members are present. Default is Nikdo není doma...
keywords: Vec<String>
Keywords to respond to for checking currently present members. Default is at
presence_db: String
Database to store persistent
keywords_heatmap: Vec<String>
Keywords to respond to for retrieving heatmap. Defaults are heatmap
, hm
heatmap_map: HashMap<String, String>
External heatmap url map
heatmap_tmp_dir: String
Directory where heatmap temp data will be written to. Default is ./
Trait Implementations§
Source§impl Clone for ModuleConfig
impl Clone for ModuleConfig
Source§fn clone(&self) -> ModuleConfig
fn clone(&self) -> ModuleConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ModuleConfig
impl<'de> Deserialize<'de> for ModuleConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModuleConfig
impl RefUnwindSafe for ModuleConfig
impl Send for ModuleConfig
impl Sync for ModuleConfig
impl Unpin for ModuleConfig
impl UnwindSafe for ModuleConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more