pub trait MessageText {
// Required method
fn text<'a>(&'a self) -> Option<String>;
}Expand description
A trait to obtain text from a message.
For example, this will return the text from text messages, or the caption of a photo.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".