pub struct PatternEntry {
pub id: String,
pub category: String,
pub stage: String,
pub label: String,
pub embedding: Vec<f32>,
}Expand description
A single entry in the pattern database.
Fields§
§id: StringStable identifier.
category: StringThreat category (e.g., prompt_injection, data_exfiltration).
stage: StringSpiderSense stage (perception / cognition / action / feedback).
label: StringHuman-readable label.
embedding: Vec<f32>Pre-computed embedding vector.
Trait Implementations§
Source§impl Clone for PatternEntry
impl Clone for PatternEntry
Source§fn clone(&self) -> PatternEntry
fn clone(&self) -> PatternEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 PatternEntry
impl Debug for PatternEntry
Source§impl<'de> Deserialize<'de> for PatternEntry
impl<'de> Deserialize<'de> for PatternEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PatternEntry
impl RefUnwindSafe for PatternEntry
impl Send for PatternEntry
impl Sync for PatternEntry
impl Unpin for PatternEntry
impl UnsafeUnpin for PatternEntry
impl UnwindSafe for PatternEntry
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