pub enum KeyboardButtonPollTypeKind {
Quiz,
Regular,
}Expand description
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
Variants§
Quiz
If quiz is passed, the user will be allowed to create only polls in the quiz mode.
Regular
If regular is passed, only regular polls will be allowed.
Trait Implementations§
Source§impl Debug for KeyboardButtonPollTypeKind
impl Debug for KeyboardButtonPollTypeKind
Source§impl<'de> Deserialize<'de> for KeyboardButtonPollTypeKind
impl<'de> Deserialize<'de> for KeyboardButtonPollTypeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for KeyboardButtonPollTypeKind
Auto Trait Implementations§
impl Freeze for KeyboardButtonPollTypeKind
impl RefUnwindSafe for KeyboardButtonPollTypeKind
impl Send for KeyboardButtonPollTypeKind
impl Sync for KeyboardButtonPollTypeKind
impl Unpin for KeyboardButtonPollTypeKind
impl UnwindSafe for KeyboardButtonPollTypeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more