pub struct CheckedPoll {
pub mode: PollMode,
pub options: Vec<PollOptionSpec>,
pub max_ranks: Option<u16>,
pub max_choices: Option<u16>,
pub opens_at: DateTime<Utc>,
pub closes_at: DateTime<Utc>,
}Expand description
A PollSpec that passed PollSpec::check: labels trimmed, empty
descriptions dropped, opens_at resolved
Fields§
§mode: PollMode§options: Vec<PollOptionSpec>§max_ranks: Option<u16>§max_choices: Option<u16>§opens_at: DateTime<Utc>§closes_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for CheckedPoll
impl Clone for CheckedPoll
Source§impl Debug for CheckedPoll
impl Debug for CheckedPoll
impl Eq for CheckedPoll
Source§impl PartialEq for CheckedPoll
impl PartialEq for CheckedPoll
impl StructuralPartialEq for CheckedPoll
Auto Trait Implementations§
impl Freeze for CheckedPoll
impl RefUnwindSafe for CheckedPoll
impl Send for CheckedPoll
impl Sync for CheckedPoll
impl Unpin for CheckedPoll
impl UnsafeUnpin for CheckedPoll
impl UnwindSafe for CheckedPoll
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.