This commit is contained in:
Waffle 2021-01-26 18:39:10 +03:00
parent 0e43c32b82
commit 311a5b18fe

View file

@ -6,12 +6,12 @@ use serde::{Deserialize, Serialize};
#[serde(rename_all = "snake_case")]
#[serde(tag = "type")]
pub enum KeyboardButtonPollType {
/// If [`Quiz`] is passed, the user will be allowed to create only polls in
/// If `Quiz` is passed, the user will be allowed to create only polls in
/// the quiz mode.
Quiz,
/// If [`Regular`] is passed, only regular polls will be allowed.
/// If `Regular` is passed, only regular polls will be allowed.
Regular,
/// If [`Any`] is passed, the user will be allowed to create a poll of any
/// If `Any` is passed, the user will be allowed to create a poll of any
/// type.
#[serde(rename = "")]
Any,