pub struct KeyboardButtonPollType {
pub type_name: Option<String>,
}
Expand description
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
Fields§
§type_name: Option<String>
Optional. If 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.
Implementations§
Trait Implementations§
Source§impl Clone for KeyboardButtonPollType
impl Clone for KeyboardButtonPollType
Source§fn clone(&self) -> KeyboardButtonPollType
fn clone(&self) -> KeyboardButtonPollType
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 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
Auto Trait Implementations§
impl Freeze for KeyboardButtonPollType
impl RefUnwindSafe for KeyboardButtonPollType
impl Send for KeyboardButtonPollType
impl Sync for KeyboardButtonPollType
impl Unpin for KeyboardButtonPollType
impl UnwindSafe for KeyboardButtonPollType
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