pub fn set_restricted(value: f64)
Expand description
Records a decision indicating that the plugin wants to restrict a request.
This function is sugar for set_decision(Decision { 0.0, value, 0.0 }.scale())
.
If used with a 1.0 value it should be given a weight in its config.
ยงArguments
value
- Therestrict
value to set.