pub struct TargetModel {
pub observations: usize,
pub waf_blocks: usize,
pub application_errors: usize,
pub auth_challenges: usize,
pub json_parse_errors: usize,
pub rate_limits: usize,
pub false_positives: usize,
pub unknown: usize,
pub fingerprints: HashMap<String, usize>,
pub learner: SchemaLearner,
}Fields§
§observations: usize§waf_blocks: usize§application_errors: usize§auth_challenges: usize§json_parse_errors: usize§rate_limits: usize§false_positives: usize§unknown: usize§fingerprints: HashMap<String, usize>§learner: SchemaLearnerImplementations§
Source§impl TargetModel
impl TargetModel
Sourcepub fn observe(
&mut self,
target: &str,
response: &HttpResponse,
) -> ResponseAnalysis
pub fn observe( &mut self, target: &str, response: &HttpResponse, ) -> ResponseAnalysis
pub fn generate_follow_ups( &self, target: &str, original_json: &str, insight: &ErrorInsight, ) -> Vec<FollowUpPayload>
Trait Implementations§
Source§impl Clone for TargetModel
impl Clone for TargetModel
Source§fn clone(&self) -> TargetModel
fn clone(&self) -> TargetModel
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 TargetModel
impl Debug for TargetModel
Source§impl Default for TargetModel
impl Default for TargetModel
Source§fn default() -> TargetModel
fn default() -> TargetModel
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TargetModel
impl RefUnwindSafe for TargetModel
impl Send for TargetModel
impl Sync for TargetModel
impl Unpin for TargetModel
impl UnsafeUnpin for TargetModel
impl UnwindSafe for TargetModel
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