telegram_bots_api/api/enums/
background_type.rs

1use crate::api::structs::background_type_chat_theme::BackgroundTypeChatTheme;
2use crate::api::structs::background_type_fill::BackgroundTypeFill;
3use crate::api::structs::background_type_pattern::BackgroundTypePattern;
4use crate::api::structs::background_type_wallpaper::BackgroundTypeWallpaper;
5use serde::{Deserialize, Serialize};
6
7/// <https://core.telegram.org/bots/api#backgroundtype>
8/// This object describes the type of a background. Currently, it can be one of
9/// BackgroundTypeFill
10/// BackgroundTypeWallpaper
11/// BackgroundTypePattern
12/// BackgroundTypeChatTheme
13#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
14pub enum BackgroundType {
15    Fill(BackgroundTypeFill),
16    Wallpaper(BackgroundTypeWallpaper),
17    Pattern(BackgroundTypePattern),
18    ChatTheme(BackgroundTypeChatTheme),
19}