Struct telexide_fork::model::KeyboardButtonPollType
source · pub struct KeyboardButtonPollType {
pub poll_type: PollType,
}Expand description
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
Fields§
§poll_type: PollTypeIf quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, 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 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 ==.