Macro fmt_placeholder

Source
macro_rules! fmt_placeholder {
    ($placeholder:expr) => { ... };
}
Expand description

fmt_placeholder is a utility macro used to create a MessageOrTemplate::MessagesPlaceholder variant.

§Usage

The macro is called with a string literal or a String object:

fmt_placeholder!("Placeholder message")

This returns a MessageOrTemplate::MessagesPlaceholder variant that wraps the given string.