pub struct SlackAttachmentBuilder { /* private fields */ }Implementations§
Source§impl SlackAttachmentBuilder
impl SlackAttachmentBuilder
pub fn new() -> SlackAttachmentBuilder
pub fn color<S: Into<String>>(self, color: S) -> SlackAttachmentBuilder
pub fn block<B: Into<SlackBlock>>(self, block: B) -> SlackAttachmentBuilder
pub fn blocks<B: Into<SlackBlock>>( self, blocks: Vec<B>, ) -> SlackAttachmentBuilder
Trait Implementations§
Source§impl From<SlackAttachmentBuilder> for SlackMessageAttachment
impl From<SlackAttachmentBuilder> for SlackMessageAttachment
Source§fn from(value: SlackAttachmentBuilder) -> Self
fn from(value: SlackAttachmentBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SlackAttachmentBuilder
impl RefUnwindSafe for SlackAttachmentBuilder
impl Send for SlackAttachmentBuilder
impl Sync for SlackAttachmentBuilder
impl Unpin for SlackAttachmentBuilder
impl UnwindSafe for SlackAttachmentBuilder
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