pub struct PollRequest {
pub choices: Vec<String>,
pub multiple: Option<bool>,
pub expires_at: Option<DateTime<Utc>>,
pub expired_after: Option<Duration>,
}Fields§
§choices: Vec<String>§multiple: Option<bool>§expires_at: Option<DateTime<Utc>>§expired_after: Option<Duration>Implementations§
Source§impl PollRequest
impl PollRequest
Sourcepub fn builder() -> PollRequestBuilder<((), (), (), ())>
pub fn builder() -> PollRequestBuilder<((), (), (), ())>
Create a builder for building PollRequest.
On the builder, call .choices(...), .multiple(...)(optional), .expires_at(...)(optional), .expired_after(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of PollRequest.
Trait Implementations§
Source§impl Clone for PollRequest
impl Clone for PollRequest
Source§fn clone(&self) -> PollRequest
fn clone(&self) -> PollRequest
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 moreSource§impl Debug for PollRequest
impl Debug for PollRequest
Auto Trait Implementations§
impl Freeze for PollRequest
impl RefUnwindSafe for PollRequest
impl Send for PollRequest
impl Sync for PollRequest
impl Unpin for PollRequest
impl UnwindSafe for PollRequest
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