tg_flows/types/
poll_answer.rs

1use crate::types::User;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
5pub struct PollAnswer {
6    /// Unique poll identifier.
7    pub poll_id: String,
8
9    /// The user, who changed the answer to the poll.
10    pub user: User,
11
12    /// 0-based identifiers of answer options, chosen by the user.
13    ///
14    /// May be empty if the user retracted their vote.
15    pub option_ids: Vec<i32>,
16}