pub enum PollAnswerVoter {
Chat(Chat),
User(User),
}
Expand description
Represents the chat or the user that changed answer to the poll.
Variants§
Chat(Chat)
The chat that changed the answer to the poll, if the voter is anonymous.
User(User)
The user that changed the answer to the poll, if the voter isn’t anonymous.
Trait Implementations§
Source§impl Clone for PollAnswerVoter
impl Clone for PollAnswerVoter
Source§fn clone(&self) -> PollAnswerVoter
fn clone(&self) -> PollAnswerVoter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PollAnswerVoter
impl Debug for PollAnswerVoter
Source§impl<'de> Deserialize<'de> for PollAnswerVoter
impl<'de> Deserialize<'de> for PollAnswerVoter
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
Source§impl From<Chat> for PollAnswerVoter
impl From<Chat> for PollAnswerVoter
Source§impl From<User> for PollAnswerVoter
impl From<User> for PollAnswerVoter
Source§impl PartialEq for PollAnswerVoter
impl PartialEq for PollAnswerVoter
Source§impl Serialize for PollAnswerVoter
impl Serialize for PollAnswerVoter
impl StructuralPartialEq for PollAnswerVoter
Auto Trait Implementations§
impl Freeze for PollAnswerVoter
impl RefUnwindSafe for PollAnswerVoter
impl Send for PollAnswerVoter
impl Sync for PollAnswerVoter
impl Unpin for PollAnswerVoter
impl UnwindSafe for PollAnswerVoter
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