pub struct PollResults {
pub answer_counts: Vec<AnswerCount>,
pub is_finalized: bool,
}
Expand description
This contains the number of votes for each answer.
Fields§
§answer_counts: Vec<AnswerCount>
The counts for each answer.
is_finalized: bool
Whether the votes have been precisely counted.
Trait Implementations§
source§impl Clone for PollResults
impl Clone for PollResults
source§fn clone(&self) -> PollResults
fn clone(&self) -> PollResults
Returns a copy 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<'de> Deserialize<'de> for PollResults
impl<'de> Deserialize<'de> for PollResults
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
source§impl Hash for PollResults
impl Hash for PollResults
source§impl PartialEq for PollResults
impl PartialEq for PollResults
source§impl Serialize for PollResults
impl Serialize for PollResults
impl Eq for PollResults
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 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
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
)