#[non_exhaustive]pub struct PollOptionDeleted {
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 deleted from a poll.
Corresponds to the Bot API PollOptionDeleted 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 from which the option was deleted, 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 deleted 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 PollOptionDeleted
impl Clone for PollOptionDeleted
Source§fn clone(&self) -> PollOptionDeleted
fn clone(&self) -> PollOptionDeleted
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 PollOptionDeleted
impl Debug for PollOptionDeleted
Source§impl<'de> Deserialize<'de> for PollOptionDeleted
impl<'de> Deserialize<'de> for PollOptionDeleted
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollOptionDeleted, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollOptionDeleted, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PollOptionDeleted
impl PartialEq for PollOptionDeleted
Source§impl Serialize for PollOptionDeleted
impl Serialize for PollOptionDeleted
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 PollOptionDeleted
Auto Trait Implementations§
impl Freeze for PollOptionDeleted
impl RefUnwindSafe for PollOptionDeleted
impl Send for PollOptionDeleted
impl Sync for PollOptionDeleted
impl Unpin for PollOptionDeleted
impl UnsafeUnpin for PollOptionDeleted
impl UnwindSafe for PollOptionDeleted
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