pub struct ContextValidationResult {
pub success_probability: f32,
pub is_likely_to_succeed: bool,
pub warnings: Vec<String>,
pub improvement_suggestions: Vec<String>,
pub token_efficiency: f32,
}
Expand description
Pre-flight context validation result
Fields§
§success_probability: f32
Overall likelihood of successful matching (0.0 to 1.0)
is_likely_to_succeed: bool
Whether the context is likely to succeed
warnings: Vec<String>
Warnings about potential issues
improvement_suggestions: Vec<String>
Suggestions for improvement
token_efficiency: f32
Estimated token efficiency compared to replace operation
Trait Implementations§
Source§impl Clone for ContextValidationResult
impl Clone for ContextValidationResult
Source§fn clone(&self) -> ContextValidationResult
fn clone(&self) -> ContextValidationResult
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 ContextValidationResult
impl RefUnwindSafe for ContextValidationResult
impl Send for ContextValidationResult
impl Sync for ContextValidationResult
impl Unpin for ContextValidationResult
impl UnwindSafe for ContextValidationResult
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