pub struct Any { /* private fields */ }
Expand description
Represents a poll that will be sent to a user.
Implementations§
source§impl Any
impl Any
sourcepub fn new(
question: impl Into<String>,
options: impl Into<Vec<String>>,
kind: impl Into<Kind>
) -> Self
pub fn new(
question: impl Into<String>,
options: impl Into<Vec<String>>,
kind: impl Into<Kind>
) -> Self
Constructs a poll.
sourcepub const fn is_immediately_closed(self, is_closed: bool) -> Self
pub const fn is_immediately_closed(self, is_closed: bool) -> Self
Configures if the poll is immediately closed.
sourcepub const fn is_anonymous(self, is_anonymous: bool) -> Self
pub const fn is_anonymous(self, is_anonymous: bool) -> Self
Comfigures if the poll is anonymous.
sourcepub const fn auto_close(self, auto_close: AutoClose) -> Self
pub const fn auto_close(self, auto_close: AutoClose) -> Self
Configures when the poll is automatically closed.
Reflects the open_period
and close_date
parameters.