pub struct MattermostConfig {
pub enabled: bool,
pub server_url: String,
pub bot_token: String,
pub webhook_path: String,
pub webhook_token: Option<String>,
pub bot_username: Option<String>,
pub allowlist: Vec<String>,
pub allowed_channels: Vec<String>,
pub rate_limit_requests_per_second: u32,
}Expand description
Mattermost bot / slash-command configuration.
Fields§
§enabled: bool§server_url: StringMattermost server base URL (e.g. “https://chat.example.com”)
bot_token: StringPersonal access token or bot token for REST API calls
webhook_path: StringWebhook path for incoming slash commands / outgoing webhooks
webhook_token: Option<String>Optional shared token used to validate incoming slash-command / webhook payloads
bot_username: Option<String>Optional bot username used for mention detection
allowlist: Vec<String>Allowed Mattermost user IDs or usernames
allowed_channels: Vec<String>Allowed Mattermost channel IDs (empty = all)
rate_limit_requests_per_second: u32Rate limit for outgoing REST API requests per second
Trait Implementations§
Source§impl Clone for MattermostConfig
impl Clone for MattermostConfig
Source§fn clone(&self) -> MattermostConfig
fn clone(&self) -> MattermostConfig
Returns a duplicate 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 Debug for MattermostConfig
impl Debug for MattermostConfig
Source§impl<'de> Deserialize<'de> for MattermostConfig
impl<'de> Deserialize<'de> for MattermostConfig
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 MattermostConfig
impl RefUnwindSafe for MattermostConfig
impl Send for MattermostConfig
impl Sync for MattermostConfig
impl Unpin for MattermostConfig
impl UnsafeUnpin for MattermostConfig
impl UnwindSafe for MattermostConfig
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