telegram_bots_api/api/structs/
background_fill_gradient.rs

1use serde::{Deserialize, Serialize};
2
3/// <https://core.telegram.org/bots/api#backgroundfillgradient>
4/// The background is a gradient fill.
5#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
6pub struct BackgroundFillGradient {
7    #[serde(rename(serialize = "type", deserialize = "type"))]
8    pub kind: String,
9    pub top_color: u32,
10    pub bottom_color: u32,
11    pub rotation_angle: u16,
12}