Struct slack_hook::SlackText [−][src]
pub struct SlackText(_);
Representation of any text sent through slack the text must be processed to escape specific characters
Methods
impl SlackText
[src]
impl SlackText
pub fn new<S: Into<String>>(text: S) -> SlackText
[src]
pub fn new<S: Into<String>>(text: S) -> SlackText
Construct slack text with escaping Escape &, <, and > in any slack text https://api.slack.com/docs/formatting
Trait Implementations
impl Debug for SlackText
[src]
impl Debug for SlackText
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for SlackText
[src]
impl Default for SlackText
impl Clone for SlackText
[src]
impl Clone for SlackText
fn clone(&self) -> SlackText
[src]
fn clone(&self) -> SlackText
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for SlackText
[src]
impl PartialEq for SlackText
fn eq(&self, other: &SlackText) -> bool
[src]
fn eq(&self, other: &SlackText) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SlackText) -> bool
[src]
fn ne(&self, other: &SlackText) -> bool
This method tests for !=
.
impl<'a> From<&'a str> for SlackText
[src]
impl<'a> From<&'a str> for SlackText
impl<'a> From<String> for SlackText
[src]
impl<'a> From<String> for SlackText
impl<'a> From<&'a [SlackTextContent]> for SlackText
[src]
impl<'a> From<&'a [SlackTextContent]> for SlackText
impl Display for SlackText
[src]
impl Display for SlackText