pub struct Poll {Show 15 fields
pub id: i64,
pub closed: bool,
pub public_voters: bool,
pub multiple_choice: bool,
pub quiz: bool,
pub open_answers: bool,
pub revoting_disabled: bool,
pub shuffle_answers: bool,
pub hide_results_until_close: bool,
pub creator: bool,
pub question: TextWithEntities,
pub answers: Vec<PollAnswer>,
pub close_period: Option<i32>,
pub close_date: Option<i32>,
pub hash: i64,
}Expand description
Generated from:
poll#b8425be9 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true open_answers:flags.6?true revoting_disabled:flags.7?true shuffle_answers:flags.8?true hide_results_until_close:flags.9?true creator:flags.10?true question:TextWithEntities answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int hash:long = PollFields§
§id: i64§closed: bool§public_voters: bool§multiple_choice: bool§quiz: bool§open_answers: bool§revoting_disabled: bool§shuffle_answers: bool§hide_results_until_close: bool§creator: bool§question: TextWithEntities§answers: Vec<PollAnswer>§close_period: Option<i32>§close_date: Option<i32>§hash: i64Trait 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 = 0xb8425be9
const CONSTRUCTOR_ID: u32 = 0xb8425be9
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