pub struct KnowledgeEntry {
pub id: String,
pub title: String,
pub description: String,
pub category: String,
pub tags: Vec<String>,
pub use_cases: Vec<String>,
pub host_targets: Vec<Host>,
pub complexity: Complexity,
pub card: Value,
pub notes: String,
}Fields§
§id: String§title: String§description: String§category: String§use_cases: Vec<String>§host_targets: Vec<Host>§complexity: Complexity§card: Value§notes: StringImplementations§
Source§impl KnowledgeEntry
impl KnowledgeEntry
Sourcepub fn complexity_str(&self) -> &'static str
pub fn complexity_str(&self) -> &'static str
Human-readable complexity label for prompt injection.
Trait Implementations§
Source§impl Clone for KnowledgeEntry
impl Clone for KnowledgeEntry
Source§fn clone(&self) -> KnowledgeEntry
fn clone(&self) -> KnowledgeEntry
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 KnowledgeEntry
impl Debug for KnowledgeEntry
Source§impl<'de> Deserialize<'de> for KnowledgeEntry
impl<'de> Deserialize<'de> for KnowledgeEntry
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 KnowledgeEntry
impl RefUnwindSafe for KnowledgeEntry
impl Send for KnowledgeEntry
impl Sync for KnowledgeEntry
impl Unpin for KnowledgeEntry
impl UnsafeUnpin for KnowledgeEntry
impl UnwindSafe for KnowledgeEntry
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