pub struct SlackConfig {
pub bot_token: Option<String>,
pub signing_secret: Option<String>,
pub webhook_host: String,
pub port: u16,
pub allowed_user_ids: Vec<String>,
pub allowed_channel_ids: Vec<String>,
pub skills: ChannelSkillsConfig,
pub allowed_tools: Option<Vec<String>>,
}Fields§
§bot_token: Option<String>Bot token. Set to None and resolve from vault via ZEPH_SLACK_BOT_TOKEN.
§Security
Never serialized: --init always persists this field as None (the real token
goes to the vault), but runtime config resolution hydrates the real value into this
field in memory. #[serde(skip_serializing)] keeps any future diagnostic Serialize
of a live Config from leaking it; Deserialize is untouched so inline tokens in a
hand-edited config.toml still load.
signing_secret: Option<String>Request signing secret. Set to None and resolve from vault via
ZEPH_SLACK_SIGNING_SECRET.
§Security
Never serialized — same rationale as bot_token.
webhook_host: String§port: u16§allowed_user_ids: Vec<String>§allowed_channel_ids: Vec<String>§skills: ChannelSkillsConfig§allowed_tools: Option<Vec<String>>Tool allowlist for this channel. None means all tools are permitted.
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