pub struct PollOption {
pub text: String,
pub creator: String,
pub votes: Vec<PollVote>,
}Expand description
Poll option and its counted votes.
Fields§
§text: StringOption text.
creator: StringHandle that created the option.
votes: Vec<PollVote>Votes cast for this option.
Trait Implementations§
Source§impl Debug for PollOption
impl Debug for PollOption
impl Eq for PollOption
Source§impl PartialEq for PollOption
impl PartialEq for PollOption
Source§fn eq(&self, other: &PollOption) -> bool
fn eq(&self, other: &PollOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PollOption
Auto Trait Implementations§
impl Freeze for PollOption
impl RefUnwindSafe for PollOption
impl Send for PollOption
impl Sync for PollOption
impl Unpin for PollOption
impl UnsafeUnpin for PollOption
impl UnwindSafe for PollOption
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.