pub struct PollBuilder<'a> { /* private fields */ }Expand description
Builder for creating a Poll.
Implementations§
Source§impl<'a> PollBuilder<'a>
impl<'a> PollBuilder<'a>
Sourcepub fn new(question: impl Into<TitanString<'a>>) -> Self
pub fn new(question: impl Into<TitanString<'a>>) -> Self
Create a new PollBuilder.
Sourcepub fn answer(self, answer: impl Into<PollAnswer<'a>>) -> Self
pub fn answer(self, answer: impl Into<PollAnswer<'a>>) -> Self
Add an answer.
Sourcepub fn expiry(self, expiry: impl Into<TitanString<'a>>) -> Self
pub fn expiry(self, expiry: impl Into<TitanString<'a>>) -> Self
Set expiry.
Sourcepub fn allow_multiselect(self, allow: bool) -> Self
pub fn allow_multiselect(self, allow: bool) -> Self
Allow multiselect.
Trait Implementations§
Source§impl<'a> Clone for PollBuilder<'a>
impl<'a> Clone for PollBuilder<'a>
Source§fn clone(&self) -> PollBuilder<'a>
fn clone(&self) -> PollBuilder<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for PollBuilder<'a>
impl<'a> RefUnwindSafe for PollBuilder<'a>
impl<'a> Send for PollBuilder<'a>
impl<'a> Sync for PollBuilder<'a>
impl<'a> Unpin for PollBuilder<'a>
impl<'a> UnwindSafe for PollBuilder<'a>
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