use crate::types::{
BackgroundTypeChatTheme, BackgroundTypeFill, BackgroundTypePattern, BackgroundTypeWallpaper,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "type")]
pub enum BackgroundType {
#[serde(rename = "fill")]
BackgroundTypeFill(BackgroundTypeFill),
#[serde(rename = "wallpaper")]
BackgroundTypeWallpaper(BackgroundTypeWallpaper),
#[serde(rename = "pattern")]
BackgroundTypePattern(BackgroundTypePattern),
#[serde(rename = "chat_theme")]
BackgroundTypeChatTheme(BackgroundTypeChatTheme),
}