pub enum ChatPostMessageContent {
Attachments(Vec<Attachments>),
Blocks(Vec<Block>),
Text(String),
}Expand description
The type that represents a selection of ChatPostMessageRequest::content.
Variants§
Attachments(Vec<Attachments>)
A JSON-based array of structured attachments, presented as a URL-encoded string.
https://api.slack.com/methods/chat.postMessage#arg_attachments
Blocks(Vec<Block>)
A JSON-based array of structured blocks, presented as a URL-encoded string.
Text(String)
How this field works and whether it is required depends on other fields you use in your API call.
Trait Implementations§
Source§impl Clone for ChatPostMessageContent
impl Clone for ChatPostMessageContent
Source§fn clone(&self) -> ChatPostMessageContent
fn clone(&self) -> ChatPostMessageContent
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 moreSource§impl Debug for ChatPostMessageContent
impl Debug for ChatPostMessageContent
Auto Trait Implementations§
impl Freeze for ChatPostMessageContent
impl RefUnwindSafe for ChatPostMessageContent
impl Send for ChatPostMessageContent
impl Sync for ChatPostMessageContent
impl Unpin for ChatPostMessageContent
impl UnwindSafe for ChatPostMessageContent
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