tbot::contexts::fields

Trait AnyText

Source
pub trait AnyText: MediaMessage {
    // Required method
    fn text(&self) -> &Text;
}
Expand description

Unites Text and Caption.

Required Methods§

Source

fn text(&self) -> &Text

The text or the caption of the message.

Implementors§