pub struct PollResults {
pub min: bool,
pub results: Option<Vec<PollAnswerVoters>>,
pub total_voters: Option<i32>,
pub recent_voters: Option<Vec<Peer>>,
pub solution: Option<String>,
pub solution_entities: Option<Vec<MessageEntity>>,
}Expand description
Generated from:
pollResults#7adf2420 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<Peer> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResultsFields§
§min: bool§results: Option<Vec<PollAnswerVoters>>§total_voters: Option<i32>§recent_voters: Option<Vec<Peer>>§solution: Option<String>§solution_entities: Option<Vec<MessageEntity>>Trait Implementations§
Source§impl Clone for PollResults
impl Clone for PollResults
Source§fn clone(&self) -> PollResults
fn clone(&self) -> PollResults
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 PollResults
impl Debug for PollResults
Source§impl Deserializable for PollResults
impl Deserializable for PollResults
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<PollResults> for PollResults
impl From<PollResults> for PollResults
Source§fn from(x: PollResults) -> Self
fn from(x: PollResults) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PollResults
impl Identifiable for PollResults
Source§const CONSTRUCTOR_ID: u32 = 0x7adf2420
const CONSTRUCTOR_ID: u32 = 0x7adf2420
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PollResults
impl PartialEq for PollResults
Source§impl Serializable for PollResults
impl Serializable for PollResults
Source§impl TryFrom<PollResults> for PollResults
impl TryFrom<PollResults> for PollResults
Source§type Error = PollResults
type Error = PollResults
The type returned in the event of a conversion error.
impl StructuralPartialEq for PollResults
Auto Trait Implementations§
impl Freeze for PollResults
impl RefUnwindSafe for PollResults
impl Send for PollResults
impl Sync for PollResults
impl Unpin for PollResults
impl UnsafeUnpin for PollResults
impl UnwindSafe for PollResults
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