pub struct KeyboardButtonTypeRequestPoll {
pub force_regular: bool,
pub force_quiz: bool,
}
Expand description
A button that allows the user to create and send a poll when pressed; available only in private chats
Fields§
§force_regular: bool
If true, only regular polls must be allowed to create
force_quiz: bool
If true, only polls in quiz mode must be allowed to create
Trait Implementations§
Source§impl Clone for KeyboardButtonTypeRequestPoll
impl Clone for KeyboardButtonTypeRequestPoll
Source§fn clone(&self) -> KeyboardButtonTypeRequestPoll
fn clone(&self) -> KeyboardButtonTypeRequestPoll
Returns a duplicate 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 Default for KeyboardButtonTypeRequestPoll
impl Default for KeyboardButtonTypeRequestPoll
Source§fn default() -> KeyboardButtonTypeRequestPoll
fn default() -> KeyboardButtonTypeRequestPoll
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestPoll
impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestPoll
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 for KeyboardButtonTypeRequestPoll
impl PartialEq for KeyboardButtonTypeRequestPoll
Source§fn eq(&self, other: &KeyboardButtonTypeRequestPoll) -> bool
fn eq(&self, other: &KeyboardButtonTypeRequestPoll) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for KeyboardButtonTypeRequestPoll
Auto Trait Implementations§
impl Freeze for KeyboardButtonTypeRequestPoll
impl RefUnwindSafe for KeyboardButtonTypeRequestPoll
impl Send for KeyboardButtonTypeRequestPoll
impl Sync for KeyboardButtonTypeRequestPoll
impl Unpin for KeyboardButtonTypeRequestPoll
impl UnwindSafe for KeyboardButtonTypeRequestPoll
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