Struct rust_tdlib::types::InputMessagePoll
source · pub struct InputMessagePoll { /* private fields */ }
Expand description
A message with a poll. Polls can’t be sent to secret chats. Polls can be sent only to a private chat with a bot
Implementations§
source§impl InputMessagePoll
impl InputMessagePoll
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InputMessagePollBuilder
pub fn question(&self) -> &String
pub fn options(&self) -> &Vec<String>
pub fn is_anonymous(&self) -> bool
pub fn type_(&self) -> &PollType
pub fn open_period(&self) -> i32
pub fn close_date(&self) -> i32
pub fn is_closed(&self) -> bool
Trait Implementations§
source§impl AsRef<InputMessagePoll> for InputMessagePoll
impl AsRef<InputMessagePoll> for InputMessagePoll
source§fn as_ref(&self) -> &InputMessagePoll
fn as_ref(&self) -> &InputMessagePoll
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for InputMessagePoll
impl Clone for InputMessagePoll
source§fn clone(&self) -> InputMessagePoll
fn clone(&self) -> InputMessagePoll
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 InputMessagePoll
impl Debug for InputMessagePoll
source§impl Default for InputMessagePoll
impl Default for InputMessagePoll
source§fn default() -> InputMessagePoll
fn default() -> InputMessagePoll
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InputMessagePoll
impl<'de> Deserialize<'de> for InputMessagePoll
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