pub struct SlackConfig {
pub workspace_url: String,
pub bot_token_keychain_account: String,
pub app_token_keychain_account: String,
pub privacy_mode: SlackPrivacyMode,
pub allowed_channels: Vec<String>,
}Expand description
Config block for a Slack bridge agent. Tokens are stored in the system keychain; the account names below are pointers, not the secrets themselves.
Fields§
§workspace_url: StringHuman-readable workspace URL shown in error messages and logs.
bot_token_keychain_account: StringKeychain account name for the xoxb-… Bot Token.
app_token_keychain_account: StringKeychain account name for the xapp-… App Token (Socket Mode).
privacy_mode: SlackPrivacyModePrivacy gate: which Slack event types reach the user agent.
allowed_channels: Vec<String>Allowed Slack channel IDs (C…). Empty = all channels allowed.
Trait Implementations§
Source§impl Clone for SlackConfig
impl Clone for SlackConfig
Source§fn clone(&self) -> SlackConfig
fn clone(&self) -> SlackConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SlackConfig
impl Debug for SlackConfig
Source§impl<'de> Deserialize<'de> for SlackConfig
impl<'de> Deserialize<'de> for SlackConfig
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 SlackConfig
impl RefUnwindSafe for SlackConfig
impl Send for SlackConfig
impl Sync for SlackConfig
impl Unpin for SlackConfig
impl UnsafeUnpin for SlackConfig
impl UnwindSafe for SlackConfig
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