pub struct MessagePayloads {
pub text: String,
pub blocks: Vec<Block>,
pub attachments: Vec<String>,
pub thread_ts: Option<String>,
pub mrkdwn: Option<bool>,
}Expand description
Message payloads.
Fields§
§text: StringThe usage of this field changes depending on whether you’re using blocks or not.
blocks: Vec<Block>An array of layout blocks in the same format as described in the building blocks guide.
attachments: Vec<String>An array of legacy secondary attachments.
thread_ts: Option<String>The ID of another un-threaded message to reply to.
mrkdwn: Option<bool>Determines whether the text field is rendered according to mrkdwn formatting or not.
Trait Implementations§
Source§impl Clone for MessagePayloads
impl Clone for MessagePayloads
Source§fn clone(&self) -> MessagePayloads
fn clone(&self) -> MessagePayloads
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 MessagePayloads
impl Debug for MessagePayloads
Auto Trait Implementations§
impl Freeze for MessagePayloads
impl RefUnwindSafe for MessagePayloads
impl Send for MessagePayloads
impl Sync for MessagePayloads
impl Unpin for MessagePayloads
impl UnwindSafe for MessagePayloads
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