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§fn clone(&self) -> VerificationStore
fn clone(&self) -> VerificationStore
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 VerificationStore
impl Debug for VerificationStore
Source§impl Default for VerificationStore
impl Default for VerificationStore
Source§fn default() -> VerificationStore
fn default() -> VerificationStore
Returns the “default value” for a type. Read more
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