pub enum SlackTextContent {
Text(SlackText),
Link(SlackLink),
User(SlackUserLink),
}Expand description
Enum used for constructing a text field having both SlackText(s) and SlackLink(s). The
variants should be used together in a Vec on any function having a Into<SlackText> trait
bound. The combined text will be space-separated.
Variants§
Text(SlackText)
Text that will be escaped via slack api rules
Link(SlackLink)
Link
User(SlackUserLink)
User Link
Trait Implementations§
Source§impl Clone for SlackTextContent
impl Clone for SlackTextContent
Source§fn clone(&self) -> SlackTextContent
fn clone(&self) -> SlackTextContent
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 SlackTextContent
impl Debug for SlackTextContent
Source§impl PartialEq for SlackTextContent
impl PartialEq for SlackTextContent
impl StructuralPartialEq for SlackTextContent
Auto Trait Implementations§
impl Freeze for SlackTextContent
impl RefUnwindSafe for SlackTextContent
impl Send for SlackTextContent
impl Sync for SlackTextContent
impl Unpin for SlackTextContent
impl UnwindSafe for SlackTextContent
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