Struct telegram_bot_api::types::KeyboardButtonPollType
source · [−]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
sourceimpl Clone for KeyboardButtonPollType
impl Clone for KeyboardButtonPollType
sourcefn clone(&self) -> KeyboardButtonPollType
fn clone(&self) -> KeyboardButtonPollType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyboardButtonPollType
impl Debug for KeyboardButtonPollType
sourceimpl<'de> Deserialize<'de> for KeyboardButtonPollType
impl<'de> Deserialize<'de> for KeyboardButtonPollType
sourcefn 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
sourceimpl Serialize for KeyboardButtonPollType
impl Serialize for KeyboardButtonPollType
Auto Trait Implementations
impl RefUnwindSafe for KeyboardButtonPollType
impl Send for KeyboardButtonPollType
impl Sync for KeyboardButtonPollType
impl Unpin for KeyboardButtonPollType
impl UnwindSafe for KeyboardButtonPollType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more