pub struct PromptCacheCrossRunComparison {
pub session_source: String,
pub session_path: String,
pub samples_recorded: usize,
pub appended: bool,
pub previous: Option<PromptCacheEffectivenessSample>,
pub current: PromptCacheEffectivenessSample,
pub regressions: Vec<PromptCacheCrossRunRegression>,
}Expand description
The result of recording a new sample: where it landed, the previous reading it was compared against, and any cross-run regressions detected.
Fields§
§session_source: String§session_path: String§samples_recorded: usize§appended: bool§previous: Option<PromptCacheEffectivenessSample>§current: PromptCacheEffectivenessSample§regressions: Vec<PromptCacheCrossRunRegression>Implementations§
Source§impl PromptCacheCrossRunComparison
impl PromptCacheCrossRunComparison
pub fn has_regression(&self) -> bool
Trait Implementations§
Source§impl Clone for PromptCacheCrossRunComparison
impl Clone for PromptCacheCrossRunComparison
Source§fn clone(&self) -> PromptCacheCrossRunComparison
fn clone(&self) -> PromptCacheCrossRunComparison
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 moreimpl StructuralPartialEq for PromptCacheCrossRunComparison
Auto Trait Implementations§
impl Freeze for PromptCacheCrossRunComparison
impl RefUnwindSafe for PromptCacheCrossRunComparison
impl Send for PromptCacheCrossRunComparison
impl Sync for PromptCacheCrossRunComparison
impl Unpin for PromptCacheCrossRunComparison
impl UnsafeUnpin for PromptCacheCrossRunComparison
impl UnwindSafe for PromptCacheCrossRunComparison
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