pub struct VerificationStore { /* private fields */ }Expand description
Thread-safe store that keeps verification results keyed by feature_id or
tool_call_id.
Implementations§
Source§impl VerificationStore
impl VerificationStore
Sourcepub async fn store(&self, key: impl Into<String>, result: VerifierResult)
pub async fn store(&self, key: impl Into<String>, result: VerifierResult)
Store a result under the given key.
Sourcepub async fn get(&self, key: &str) -> Option<VerifierResult>
pub async fn get(&self, key: &str) -> Option<VerifierResult>
Retrieve a result by key.
Sourcepub async fn list(&self) -> Vec<(String, VerifierResult)>
pub async fn list(&self) -> Vec<(String, VerifierResult)>
List all stored results, newest first (approximate: insertion order).
Sourcepub async fn remove(&self, key: &str) -> Option<VerifierResult>
pub async fn remove(&self, key: &str) -> Option<VerifierResult>
Remove a result by key.
Trait Implementations§
Source§impl Clone for VerificationStore
impl Clone for VerificationStore
Source§impl Debug for VerificationStore
impl Debug for VerificationStore
Auto Trait Implementations§
impl !RefUnwindSafe for VerificationStore
impl !UnwindSafe for VerificationStore
impl Freeze for VerificationStore
impl Send for VerificationStore
impl Sync for VerificationStore
impl Unpin for VerificationStore
impl UnsafeUnpin for VerificationStore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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