ToSlackPlaintext

Trait ToSlackPlaintext 

Source
pub trait ToSlackPlaintext: Sized + Into<Plain> {
    // Provided method
    fn plaintext(self) -> Plain { ... }
}
Expand description

Convenience trait to provide a little more meaning than a call to "foo".into(), and shorter than text::Plain::from("foo")

Provided Methods§

Source

fn plaintext(self) -> Plain

Convert to slack plain_text

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§