Struct telexide_fork::model::KeyboardButtonPollType [−][src]
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
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more