pub struct VerifiedCandidate {
pub choice_id: ChoiceId,
pub verification: VerificationStatus,
pub diff_summary: String,
pub confidence: f32,
}Expand description
A verified candidate representing a potential change.
Links a design choice to its verification result and provides summary information for display.
Fields§
§choice_id: ChoiceIdReference to the choice this candidate represents.
verification: VerificationStatusVerification status.
diff_summary: StringSummary of changes (e.g., “3 files, +45/-12 lines”).
confidence: f32Confidence score (0.0 - 1.0). May be adjusted based on verification results.
Implementations§
Source§impl VerifiedCandidate
impl VerifiedCandidate
Sourcepub fn new(choice_id: impl Into<ChoiceId>, confidence: f32) -> VerifiedCandidate
pub fn new(choice_id: impl Into<ChoiceId>, confidence: f32) -> VerifiedCandidate
Create a new verified candidate.
Sourcepub fn with_verification(self, status: VerificationStatus) -> VerifiedCandidate
pub fn with_verification(self, status: VerificationStatus) -> VerifiedCandidate
Set verification status.
Sourcepub fn with_diff_summary(self, summary: impl Into<String>) -> VerifiedCandidate
pub fn with_diff_summary(self, summary: impl Into<String>) -> VerifiedCandidate
Set diff summary.
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Check if this candidate passed verification.
Sourcepub fn is_fully_verified(&self) -> bool
pub fn is_fully_verified(&self) -> bool
Check if this candidate is fully verified.
Trait Implementations§
Source§impl Clone for VerifiedCandidate
impl Clone for VerifiedCandidate
Source§fn clone(&self) -> VerifiedCandidate
fn clone(&self) -> VerifiedCandidate
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 VerifiedCandidate
impl Debug for VerifiedCandidate
Source§impl<'de> Deserialize<'de> for VerifiedCandidate
impl<'de> Deserialize<'de> for VerifiedCandidate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerifiedCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerifiedCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for VerifiedCandidate
impl Serialize for VerifiedCandidate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for VerifiedCandidate
impl RefUnwindSafe for VerifiedCandidate
impl Send for VerifiedCandidate
impl Sync for VerifiedCandidate
impl Unpin for VerifiedCandidate
impl UnsafeUnpin for VerifiedCandidate
impl UnwindSafe for VerifiedCandidate
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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