pub struct PollOptionDeleted {
pub poll_message: Option<Value>,
pub option_persistent_id: String,
pub option_text: String,
pub option_text_entities: Option<Vec<MessageEntity>>,
}Expand description
Service message: an option was deleted from a poll.
Fields§
§poll_message: Option<Value>Message containing the poll from which the option was deleted.
Uses serde_json::Value because the API returns a MaybeInaccessibleMessage
union type here. Will not contain reply_to_message.
option_persistent_id: StringPersistent identifier of the deleted option.
option_text: StringText of the deleted option.
option_text_entities: Option<Vec<MessageEntity>>Special entities 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<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 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