pub struct InputPollOption {
pub text: String,
pub text_parse_mode: Option<ParseMode>,
pub text_entities: Option<Vec<MessageEntity>>,
pub media: Option<InputPollOptionMedia>,
}Expand description
An option to include when creating a poll with sendPoll.
Fields§
§text: StringOption text (1–100 characters).
text_parse_mode: Option<ParseMode>Parse mode for the option text.
text_entities: Option<Vec<MessageEntity>>Special entities in the option text; alternative to text_parse_mode.
media: Option<InputPollOptionMedia>Media added to this poll option.
Implementations§
Trait Implementations§
Source§impl Clone for InputPollOption
impl Clone for InputPollOption
Source§fn clone(&self) -> InputPollOption
fn clone(&self) -> InputPollOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputPollOption
impl Debug for InputPollOption
Source§impl<'de> Deserialize<'de> for InputPollOption
impl<'de> Deserialize<'de> for InputPollOption
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 InputPollOption
impl RefUnwindSafe for InputPollOption
impl Send for InputPollOption
impl Sync for InputPollOption
impl Unpin for InputPollOption
impl UnsafeUnpin for InputPollOption
impl UnwindSafe for InputPollOption
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