#[non_exhaustive]pub struct PollOptionAdded {
pub poll_message: Option<Box<Message>>,
pub option_persistent_id: String,
pub option_text: String,
pub option_text_entities: Option<Vec<MessageEntity>>,
}Expand description
Service message about an option added to a poll.
Corresponds to the Bot API PollOptionAdded object.
Added in Bot API 9.6.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.poll_message: Option<Box<Message>>Message containing the poll to which the option was added, if known.
Note that the Message object in this field will not contain the reply_to_message
field even if it itself is a reply.
option_persistent_id: StringUnique identifier of the added option.
option_text: StringOption text.
option_text_entities: Option<Vec<MessageEntity>>Special entities that appear in the option text.
Trait Implementations§
Source§impl Clone for PollOptionAdded
impl Clone for PollOptionAdded
Source§fn clone(&self) -> PollOptionAdded
fn clone(&self) -> PollOptionAdded
Returns a duplicate 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 PollOptionAdded
impl Debug for PollOptionAdded
Source§impl<'de> Deserialize<'de> for PollOptionAdded
impl<'de> Deserialize<'de> for PollOptionAdded
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollOptionAdded, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollOptionAdded, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PollOptionAdded
impl PartialEq for PollOptionAdded
Source§impl Serialize for PollOptionAdded
impl Serialize for PollOptionAdded
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PollOptionAdded
Auto Trait Implementations§
impl Freeze for PollOptionAdded
impl RefUnwindSafe for PollOptionAdded
impl Send for PollOptionAdded
impl Sync for PollOptionAdded
impl Unpin for PollOptionAdded
impl UnsafeUnpin for PollOptionAdded
impl UnwindSafe for PollOptionAdded
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