pub struct VoteResult {
pub winner: String,
pub tally: HashMap<String, usize>,
pub output: AgentOutput,
}Expand description
The result of a voting round, including the winning vote, the full tally, and the output from the first voter that cast the winning vote.
Fields§
§winner: StringThe vote string that won.
tally: HashMap<String, usize>Vote string → number of voters that cast it.
output: AgentOutputThe full AgentOutput from the first voter whose vote matched the winner.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VoteResult
impl RefUnwindSafe for VoteResult
impl Send for VoteResult
impl Sync for VoteResult
impl Unpin for VoteResult
impl UnsafeUnpin for VoteResult
impl UnwindSafe for VoteResult
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