pub struct PayloadBuilder { /* private fields */ }Expand description
PayloadBuilder is used to build a Payload
Implementations§
Source§impl PayloadBuilder
impl PayloadBuilder
Sourcepub fn icon_emoji<S: Into<String>>(self, icon_emoji: S) -> Self
pub fn icon_emoji<S: Into<String>>(self, icon_emoji: S) -> Self
Set the icon_emoji
Sourcepub fn attachments(self, attachments: Vec<Attachment>) -> Self
pub fn attachments(self, attachments: Vec<Attachment>) -> Self
Set the attachments
Sourcepub fn unfurl_links(self, b: bool) -> Self
pub fn unfurl_links(self, b: bool) -> Self
whether slack will try to fetch links and create an attachment https://api.slack.com/docs/unfurling
Sourcepub fn unfurl_media(self, b: bool) -> Self
pub fn unfurl_media(self, b: bool) -> Self
Pass false to disable unfurling of media content
Sourcepub fn link_names(self, b: bool) -> Self
pub fn link_names(self, b: bool) -> Self
Find and link channel names and usernames.
Trait Implementations§
Source§impl Debug for PayloadBuilder
impl Debug for PayloadBuilder
Source§impl Default for PayloadBuilder
impl Default for PayloadBuilder
Source§fn default() -> PayloadBuilder
fn default() -> PayloadBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PayloadBuilder
impl !RefUnwindSafe for PayloadBuilder
impl Send for PayloadBuilder
impl Sync for PayloadBuilder
impl Unpin for PayloadBuilder
impl !UnwindSafe for PayloadBuilder
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