1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! The two-valued projection of a WAF verdict that the learner reasons
//! over.
//!
//! A real WAF verdict ([`wafrift_types::Verdict`]) is rich
//! (blocked / allowed / rate-limited / challenge / server-error /
//! partial). Automaton learning is a *binary* classification problem:
//! the request either reaches the application or it does not. This is
//! the deliberate, lossy projection — kept distinct from `Verdict` on
//! purpose (it is not a duplicate of it; it is the learning-relevant
//! quotient).
use Verdict;
/// Did the request reach the protected application, or was it stopped
/// by the WAF?