pub struct PollOption {
pub text: String,
pub creator: String,
pub votes: Vec<PollVote>,
}Expand description
Represents a Poll option
Fields§
§text: StringThe text of the option
creator: StringThe creator of the option
votes: Vec<PollVote>The votes for this option
Trait Implementations§
Source§impl Debug for PollOption
impl Debug for PollOption
Source§impl PartialEq for PollOption
impl PartialEq for PollOption
impl Eq for PollOption
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 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.