pub enum InjectionRisk {
Clean,
Suspicious(Vec<String>),
}Expand description
The result of scanning page text for injection tells.
Variants§
Clean
No known injection patterns found.
Suspicious(Vec<String>)
One or more suspicious patterns; each string names the matched tell (for the warning surfaced to the agent and the audit record).
Implementations§
Source§impl InjectionRisk
impl InjectionRisk
Sourcepub fn is_suspicious(&self) -> bool
pub fn is_suspicious(&self) -> bool
Whether any suspicious pattern was found.
Trait Implementations§
Source§impl Clone for InjectionRisk
impl Clone for InjectionRisk
Source§fn clone(&self) -> InjectionRisk
fn clone(&self) -> InjectionRisk
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 InjectionRisk
impl Debug for InjectionRisk
impl Eq for InjectionRisk
Source§impl PartialEq for InjectionRisk
impl PartialEq for InjectionRisk
Source§fn eq(&self, other: &InjectionRisk) -> bool
fn eq(&self, other: &InjectionRisk) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InjectionRisk
Auto Trait Implementations§
impl Freeze for InjectionRisk
impl RefUnwindSafe for InjectionRisk
impl Send for InjectionRisk
impl Sync for InjectionRisk
impl Unpin for InjectionRisk
impl UnsafeUnpin for InjectionRisk
impl UnwindSafe for InjectionRisk
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.