pub struct PollResult {
pub option_a: String,
pub option_b: String,
pub option_c: Option<String>,
pub option_d: Option<String>,
pub option_a_votes_percentage: f64,
pub option_b_votes_percentage: f64,
pub option_c_votes_percentage: f64,
pub option_d_votes_percentage: f64,
pub total_votes: i64,
pub expiration_timestamp: ThreadsTime,
}Expand description
Poll results and voting statistics.
Fields§
§option_a: StringFirst poll option text.
option_b: StringSecond poll option text.
option_c: Option<String>Third poll option (optional).
option_d: Option<String>Fourth poll option (optional).
option_a_votes_percentage: f64Vote percentage for option A.
option_b_votes_percentage: f64Vote percentage for option B.
option_c_votes_percentage: f64Vote percentage for option C.
option_d_votes_percentage: f64Vote percentage for option D.
total_votes: i64Total number of votes cast.
expiration_timestamp: ThreadsTimeWhen the poll expires.
Trait Implementations§
Source§impl Clone for PollResult
impl Clone for PollResult
Source§fn clone(&self) -> PollResult
fn clone(&self) -> PollResult
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 PollResult
impl Debug for PollResult
Source§impl<'de> Deserialize<'de> for PollResult
impl<'de> Deserialize<'de> for PollResult
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
Auto Trait Implementations§
impl Freeze for PollResult
impl RefUnwindSafe for PollResult
impl Send for PollResult
impl Sync for PollResult
impl Unpin for PollResult
impl UnsafeUnpin for PollResult
impl UnwindSafe for PollResult
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