pub struct SlackMessage {
pub channel: Option<String>,
pub username: Option<String>,
pub icon_emoji: Option<String>,
pub payload_json: String,
}Expand description
A Slack Block Kit / incoming-webhook message ready to POST.
Fields§
§channel: Option<String>Slack channel override (e.g. "#ops").
username: Option<String>Bot username shown in Slack.
icon_emoji: Option<String>Emoji icon (e.g. ":rotating_light:").
payload_json: StringSerialized JSON body of the Slack API payload.
Trait Implementations§
Source§impl Clone for SlackMessage
impl Clone for SlackMessage
Source§fn clone(&self) -> SlackMessage
fn clone(&self) -> SlackMessage
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 moreAuto Trait Implementations§
impl Freeze for SlackMessage
impl RefUnwindSafe for SlackMessage
impl Send for SlackMessage
impl Sync for SlackMessage
impl Unpin for SlackMessage
impl UnsafeUnpin for SlackMessage
impl UnwindSafe for SlackMessage
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