Enum tg_flows::KeyboardButtonPollType
source · pub enum KeyboardButtonPollType {
Quiz,
Regular,
Any,
}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.
Any
If Any is passed, the user will be allowed to create a poll of any
type.
Trait Implementations§
source§impl Clone for KeyboardButtonPollType
impl Clone for KeyboardButtonPollType
source§fn clone(&self) -> KeyboardButtonPollType
fn clone(&self) -> KeyboardButtonPollType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for KeyboardButtonPollType
impl Debug for KeyboardButtonPollType
source§impl<'de> Deserialize<'de> for KeyboardButtonPollType
impl<'de> Deserialize<'de> for KeyboardButtonPollType
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
source§impl Hash for KeyboardButtonPollType
impl Hash for KeyboardButtonPollType
source§impl PartialEq<KeyboardButtonPollType> for KeyboardButtonPollType
impl PartialEq<KeyboardButtonPollType> for KeyboardButtonPollType
source§fn eq(&self, other: &KeyboardButtonPollType) -> bool
fn eq(&self, other: &KeyboardButtonPollType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.