pub struct SlackMessage {
pub channel: Option<String>,
pub text: String,
pub title: Option<String>,
pub fields: Vec<(String, String)>,
}Expand description
Slack message
Fields§
§channel: Option<String>Channel to send message to (optional, uses default if not provided)
text: StringMessage text
title: Option<String>Message title/subject (optional)
fields: Vec<(String, String)>Additional fields for rich formatting (optional)
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 · 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