pub struct Poll {
pub id: i64,
pub closed: bool,
pub public_voters: bool,
pub multiple_choice: bool,
pub quiz: bool,
pub question: TextWithEntities,
pub answers: Vec<PollAnswer>,
pub close_period: Option<i32>,
pub close_date: Option<i32>,
}Expand description
Generated from:
poll#58747131 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:TextWithEntities answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int = PollFields§
§id: i64§closed: bool§public_voters: bool§multiple_choice: bool§quiz: bool§question: TextWithEntities§answers: Vec<PollAnswer>§close_period: Option<i32>§close_date: Option<i32>Trait Implementations§
Source§impl Deserializable for Poll
impl Deserializable for Poll
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 Identifiable for Poll
impl Identifiable for Poll
Source§const CONSTRUCTOR_ID: u32 = 0x58747131
const CONSTRUCTOR_ID: u32 = 0x58747131
The constructor ID as specified in the TL schema.
Source§impl Serializable for Poll
impl Serializable for Poll
impl StructuralPartialEq for Poll
Auto Trait Implementations§
impl Freeze for Poll
impl RefUnwindSafe for Poll
impl Send for Poll
impl Sync for Poll
impl Unpin for Poll
impl UnsafeUnpin for Poll
impl UnwindSafe for Poll
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