pub enum CreateMessage {
Attachments(Value),
Blocks(Value),
Text(String),
}Variants§
Attachments(Value)
https://api.slack.com/methods/chat.postMessage#arg_attachments
Blocks(Value)
https://api.slack.com/methods/chat.postMessage#arg_blocks
Text(String)
https://api.slack.com/methods/chat.postMessage#arg_text
Implementations§
Source§impl CreateMessage
impl CreateMessage
pub fn to_request(self) -> Value
pub async fn send_to_channel( self, client: &SlackClient, channel: String, ) -> Result<Response, Error>
pub async fn send_response_url( self, client: &SlackClient, response_url: &str, ) -> Result<Response, Error>
Auto Trait Implementations§
impl Freeze for CreateMessage
impl RefUnwindSafe for CreateMessage
impl Send for CreateMessage
impl Sync for CreateMessage
impl Unpin for CreateMessage
impl UnsafeUnpin for CreateMessage
impl UnwindSafe for CreateMessage
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