Enum slack_hook::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
sourceimpl Clone for SlackTextContent
impl Clone for SlackTextContent
sourcefn clone(&self) -> SlackTextContent
fn clone(&self) -> SlackTextContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SlackTextContent
impl Debug for SlackTextContent
sourceimpl PartialEq<SlackTextContent> for SlackTextContent
impl PartialEq<SlackTextContent> for SlackTextContent
sourcefn eq(&self, other: &SlackTextContent) -> bool
fn eq(&self, other: &SlackTextContent) -> bool
impl StructuralPartialEq for SlackTextContent
Auto Trait Implementations
impl RefUnwindSafe for SlackTextContent
impl Send for SlackTextContent
impl Sync for SlackTextContent
impl Unpin for SlackTextContent
impl UnwindSafe for SlackTextContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more