pub struct FreshnessProtocol;Expand description
Freshness protocol for tracking data volatility
Implementations§
Source§impl FreshnessProtocol
impl FreshnessProtocol
Sourcepub fn needs_verification(category: DataCategory) -> bool
pub fn needs_verification(category: DataCategory) -> bool
Check if a piece of data needs verification
Sourcepub fn guidance(category: DataCategory) -> String
pub fn guidance(category: DataCategory) -> String
Get verification guidance for a category
Sourcepub fn classify_text(text: &str) -> Vec<DataCategory>
pub fn classify_text(text: &str) -> Vec<DataCategory>
Classify text to detect potential volatile data Returns categories that might need verification
Auto Trait Implementations§
impl Freeze for FreshnessProtocol
impl RefUnwindSafe for FreshnessProtocol
impl Send for FreshnessProtocol
impl Sync for FreshnessProtocol
impl Unpin for FreshnessProtocol
impl UnsafeUnpin for FreshnessProtocol
impl UnwindSafe for FreshnessProtocol
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