ferrisgram/types/
background_type_wallpaper.rs

1// WARNING: THIS CODE IS AUTOGENERATED.
2// DO NOT EDIT!!!
3
4use crate::types::Document;
5use serde::{Deserialize, Serialize};
6
7/// The background is a wallpaper in the JPEG format.
8/// <https://core.telegram.org/bots/api#backgroundtypewallpaper>
9#[derive(Serialize, Deserialize, Debug, Clone)]
10pub struct BackgroundTypeWallpaper {
11    /// Document with the wallpaper
12    pub document: Document,
13    /// Dimming of the background in dark themes, as a percentage; 0-100
14    pub dark_theme_dimming: i64,
15    /// Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub is_blurred: Option<bool>,
18    /// Optional. True, if the background moves slightly when the device is tilted
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub is_moving: Option<bool>,
21}