macro_rules! pt {
($e : expr) => { ... };
($e : expr, $($es:expr),+ $(,)?) => { ... };
}Expand description
Builds a SlackBlockPlainText,
converted into the caller’s target type via Into.
Same rules and same E0283 limitation as md!: pt!(text) wraps as-is,
pt!(fmt, args...) formats first, and a bare pt!(..) item needs an
explicit target type to appear directly in a slack_blocks! list.
use slack_morphism::prelude::*;
let text: SlackBlockPlainText = pt!("hello");
let formatted: SlackBlockPlainText = pt!("hello {}", "world");