pub struct ElectionResult {
pub winner_id: String,
pub representative_ids: Vec<String>,
pub all_ranked_ids: Vec<String>,
pub rounds: Vec<RoundSummary>,
pub candidate_best_results: Vec<CandidateBestResult>,
pub embeddings: Vec<EmbeddedText>,
}Expand description
Result of running the elimination algorithm on a collection of embeddings.
Fields§
§winner_id: StringID of the final surviving candidate.
representative_ids: Vec<String>IDs of the last k candidates, captured when reporting begins.
all_ranked_ids: Vec<String>Full ranking from winner to first eliminated candidate.
rounds: Vec<RoundSummary>Reported round summaries for the final k rounds.
candidate_best_results: Vec<CandidateBestResult>Best round result reached by each candidate during the full election, ordered like all_ranked_ids.
embeddings: Vec<EmbeddedText>Normalized embeddings associated with the processed records.
Trait Implementations§
Source§impl Clone for ElectionResult
impl Clone for ElectionResult
Source§fn clone(&self) -> ElectionResult
fn clone(&self) -> ElectionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElectionResult
impl Debug for ElectionResult
Source§impl<'de> Deserialize<'de> for ElectionResult
impl<'de> Deserialize<'de> for ElectionResult
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 ElectionResult
impl RefUnwindSafe for ElectionResult
impl Send for ElectionResult
impl Sync for ElectionResult
impl Unpin for ElectionResult
impl UnsafeUnpin for ElectionResult
impl UnwindSafe for ElectionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more