Enum slack_hook2::SlackTextContent
source · 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 copy 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 more