Expand description
Tells when the poll is automatically closed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl AutoClose
impl AutoClose
sourcepub fn is_open_period(&self) -> bool
pub fn is_open_period(&self) -> bool
Returns true
if self
is of variant OpenPeriod
.
sourcepub fn expect_open_period(self) -> u16where
Self: Debug,
pub fn expect_open_period(self) -> u16where
Self: Debug,
Unwraps the value, yielding the content of OpenPeriod
.
Panics
Panics if the value is not OpenPeriod
, with a panic message including the content of self
.
sourcepub fn open_period(self) -> Option<u16>
pub fn open_period(self) -> Option<u16>
Returns Some
if self
is of variant OpenPeriod
, and None
otherwise.
sourcepub fn is_close_date(&self) -> bool
pub fn is_close_date(&self) -> bool
Returns true
if self
is of variant CloseDate
.
sourcepub fn expect_close_date(self) -> i64where
Self: Debug,
pub fn expect_close_date(self) -> i64where
Self: Debug,
sourcepub fn close_date(self) -> Option<i64>
pub fn close_date(self) -> Option<i64>
Returns Some
if self
is of variant CloseDate
, and None
otherwise.