pub struct Payload {
pub text: String,
pub category: String,
pub technique: String,
pub context: String,
pub encoding: String,
pub cwe: Option<String>,
pub severity: Option<String>,
pub confidence: f64,
pub expected_pattern: Option<String>,
}Expand description
A generated payload with metadata about its origin.
Fields§
§text: StringThe payload string.
category: StringWhich category this payload targets (e.g. “sql-injection”).
technique: StringWhich technique generated it (e.g. “union-based”).
context: StringWhich context it was generated in (e.g. “string-break”).
encoding: StringWhich encoding was applied (e.g. “url_encode”).
cwe: Option<String>Optional CWE identifier inherited from the grammar.
severity: Option<String>Optional severity hint inherited from the grammar.
confidence: f64Confidence score for this payload variant.
expected_pattern: Option<String>Optional regex pattern expected in the observed response.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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.