pub struct SlackConfig {
pub method: SlackMethod,
pub webhook_url: Option<String>,
pub bot_token: Option<String>,
pub default_channel: Option<String>,
}Expand description
Slack configuration
Fields§
§method: SlackMethodIntegration method to use
webhook_url: Option<String>Webhook URL (for incoming webhook method)
bot_token: Option<String>Bot token (for Web API method)
default_channel: Option<String>Default channel to send messages to (for Web API)
Implementations§
Source§impl SlackConfig
impl SlackConfig
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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