#[non_exhaustive]pub struct Poll {
pub kind: Kind,
pub id: String,
pub question: String,
pub options: Vec<Option>,
pub total_voter_count: u64,
pub is_closed: bool,
pub is_anonymous: bool,
pub auto_close: Option<AutoClose>,
}Expand description
Represents a Poll.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: KindThe kind of the poll.
id: StringThe ID of the poll.
question: StringThe question of the poll.
options: Vec<Option>The options of the poll.
total_voter_count: u64How many people voted in the poll.
is_closed: booltrue if the poll is closed.
is_anonymous: booltrue if the poll is anonymous.
auto_close: Option<AutoClose>Tells when the poll is automatically closed.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Poll
impl<'de> Deserialize<'de> for Poll
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more