telegram_bots_api 0.710.0

Telegram bots api simple rust wrapper, and no more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::api::structs::background_fill_freeform_gradient::BackgroundFillFreeformGradient;
use crate::api::structs::background_fill_gradient::BackgroundFillGradient;
use crate::api::structs::background_fill_solid::BackgroundFillSolid;
use serde::{Deserialize, Serialize};

/// <https://core.telegram.org/bots/api#backgroundfill>
/// This object describes the way a background is filled based on the selected colors. Currently, it can be one of
/// BackgroundFillSolid
/// BackgroundFillGradient
/// BackgroundFillFreeformGradient
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub enum BackgroundFill {
    Solid(BackgroundFillSolid),
    Gradient(BackgroundFillGradient),
    FreeformGradient(BackgroundFillFreeformGradient),
}