pub struct Poll {
pub answers: Vec<PollAnswer>,
pub allow_multiselect: bool,
pub expiry: Option<Timestamp>,
pub layout_type: PollLayoutType,
pub question: PollMedia,
pub results: Option<PollResults>,
}
Fields§
§answers: Vec<PollAnswer>
Each of the answers available in the poll.
allow_multiselect: bool
Whether a user can select multiple answers.
expiry: Option<Timestamp>
The time when the poll ends.
layout_type: PollLayoutType
The layout type of the poll.
question: PollMedia
The question of the poll. Only text is supported.
results: Option<PollResults>
The results of the poll.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Poll
impl<'de> Deserialize<'de> for Poll
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
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)