[−][src]Struct block_kit::payload::message::CommonMessagePayload
Common base structure for Slack APIs that publish message.
Some additional fields may be required.
Reference: https://api.slack.com/reference/messaging/payload
Methods
impl CommonMessagePayload
[src]
pub fn new() -> Self
[src]
pub fn text(self, text: impl Into<String>) -> Self
[src]
pub fn blocks(self, blocks: Vec<Block>) -> Self
[src]
pub fn attachments(self, attachments: Vec<Attachment>) -> Self
[src]
pub fn thread_ts(self, thread_ts: impl Into<String>) -> Self
[src]
pub fn markdown(self, markdown: bool) -> Self
[src]
Trait Implementations
impl Debug for CommonMessagePayload
[src]
impl Default for CommonMessagePayload
[src]
fn default() -> CommonMessagePayload
[src]
impl Serialize for CommonMessagePayload
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommonMessagePayload
impl Send for CommonMessagePayload
impl Sync for CommonMessagePayload
impl Unpin for CommonMessagePayload
impl UnwindSafe for CommonMessagePayload
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,