Trait Photo

Source
pub trait Photo: MediaMessage {
    // Required method
    fn photo(&self) -> &[PhotoSize];
}
Expand description

A general trait for photo messages.

Required Methods§

Source

fn photo(&self) -> &[PhotoSize]

The photo of the message.

Implementors§