pub struct DetectionResult {
pub relation: EvolutionRelation,
pub llm_used: bool,
}Expand description
Result of evolution detection.
Fields§
§relation: EvolutionRelationThe detected evolution relation.
llm_used: boolWhether LLM was used (vs fallback).
Implementations§
Source§impl DetectionResult
impl DetectionResult
Sourcepub fn new(relation: EvolutionRelation, llm_used: bool) -> Self
pub fn new(relation: EvolutionRelation, llm_used: bool) -> Self
Create a new detection result.
Sourcepub fn evolution_type(&self) -> EvolutionType
pub fn evolution_type(&self) -> EvolutionType
Get the evolution type.
Sourcepub fn confidence(&self) -> f32
pub fn confidence(&self) -> f32
Get the confidence.
Sourcepub fn is_high_confidence(&self) -> bool
pub fn is_high_confidence(&self) -> bool
Is this a high confidence detection?
Trait Implementations§
Source§impl Clone for DetectionResult
impl Clone for DetectionResult
Source§fn clone(&self) -> DetectionResult
fn clone(&self) -> DetectionResult
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 moreAuto Trait Implementations§
impl Freeze for DetectionResult
impl RefUnwindSafe for DetectionResult
impl Send for DetectionResult
impl Sync for DetectionResult
impl Unpin for DetectionResult
impl UnwindSafe for DetectionResult
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