pub struct VotingResults {
pub tie: bool,
pub results: Vec<VotingResult>,
pub duels: Option<Vec<Duels>>,
}
Expand description
Represents the results of a voting process.
This struct contains the overall results of a voting, including details on whether the voting resulted in a tie and the individual results for each choice. It can also contain additional information about how choices compare to each other in duels
Fields§
§tie: bool
§results: Vec<VotingResult>
§duels: Option<Vec<Duels>>
Trait Implementations§
Source§impl Debug for VotingResults
impl Debug for VotingResults
Source§impl<'de> Deserialize<'de> for VotingResults
impl<'de> Deserialize<'de> for VotingResults
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
Source§impl PartialEq for VotingResults
impl PartialEq for VotingResults
Source§impl Serialize for VotingResults
impl Serialize for VotingResults
impl StructuralPartialEq for VotingResults
Auto Trait Implementations§
impl Freeze for VotingResults
impl RefUnwindSafe for VotingResults
impl Send for VotingResults
impl Sync for VotingResults
impl Unpin for VotingResults
impl UnwindSafe for VotingResults
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