pub struct BypassEntry {
pub payload_hash: String,
pub genes: Vec<(String, String)>,
pub lineage_trace: String,
pub fitness: f64,
pub evaluations: u32,
pub target_waf: Option<String>,
pub verified: bool,
pub schema_version: u32,
}Expand description
Serialize a bypass corpus including full lineage trees.
Fields§
§payload_hash: StringPayload hash (SHA-256 hex of serialized genes).
genes: Vec<(String, String)>Genes that produced the bypass.
lineage_trace: StringFull lineage trace.
fitness: f64Final fitness score.
evaluations: u32Number of evaluations.
target_waf: Option<String>Target WAF identifier (optional).
verified: boolWhether this bypass was verified.
schema_version: u32Schema version for forward/backward compatibility.
Implementations§
Source§impl BypassEntry
impl BypassEntry
pub const CURRENT_SCHEMA: u32 = 1
pub fn from_chromosome( chromosome: &Chromosome, target_waf: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for BypassEntry
impl Clone for BypassEntry
Source§fn clone(&self) -> BypassEntry
fn clone(&self) -> BypassEntry
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 BypassEntry
impl Debug for BypassEntry
Source§impl<'de> Deserialize<'de> for BypassEntry
impl<'de> Deserialize<'de> for BypassEntry
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 BypassEntry
impl RefUnwindSafe for BypassEntry
impl Send for BypassEntry
impl Sync for BypassEntry
impl Unpin for BypassEntry
impl UnsafeUnpin for BypassEntry
impl UnwindSafe for BypassEntry
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