pub struct PollOption {
pub persistent_id: String,
pub text: String,
pub text_entities: Option<Vec<MessageEntity>>,
pub voter_count: u32,
pub added_by_user: Option<User>,
pub added_by_chat: Option<Chat>,
pub addition_date: Option<i64>,
pub media: Option<PollMedia>,
}Expand description
One option in a Poll.
Fields§
§persistent_id: StringPersistent identifier of this option, stable across poll edits.
text: StringOption text (1–100 characters).
text_entities: Option<Vec<MessageEntity>>Special entities in the option text.
voter_count: u32Number of users who voted for this option.
added_by_user: Option<User>The user who added this option, if applicable.
added_by_chat: Option<Chat>The chat that added this option, if applicable.
addition_date: Option<i64>Unix timestamp when this option was added; absent if it existed at poll creation.
media: Option<PollMedia>Media added to this poll option.
Trait Implementations§
Source§impl Clone for PollOption
impl Clone for PollOption
Source§fn clone(&self) -> PollOption
fn clone(&self) -> PollOption
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 PollOption
impl Debug for PollOption
Source§impl<'de> Deserialize<'de> for PollOption
impl<'de> Deserialize<'de> for PollOption
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 PollOption
impl RefUnwindSafe for PollOption
impl Send for PollOption
impl Sync for PollOption
impl Unpin for PollOption
impl UnsafeUnpin for PollOption
impl UnwindSafe for PollOption
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