pub struct Poll {Show 17 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 subscribers_only: bool,
pub question: TextWithEntities,
pub answers: Vec<PollAnswer>,
pub close_period: Option<i32>,
pub close_date: Option<i32>,
pub countries_iso2: Option<Vec<String>>,
pub hash: i64,
}Expand description
Generated from:
poll#966e2dbf 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 subscribers_only:flags.11?true question:TextWithEntities answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int countries_iso2:flags.12?Vector<string> 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§subscribers_only: bool§question: TextWithEntities§answers: Vec<PollAnswer>§close_period: Option<i32>§close_date: Option<i32>§countries_iso2: Option<Vec<String>>§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 = 0x966e2dbf
const CONSTRUCTOR_ID: u32 = 0x966e2dbf
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