robotparser_fork/model/request_rate.rs
1#[derive(Debug, Clone)]
2/// The model of limiting the frequency of requests to the server.
3/// It's set by the `Request-Rate` directive.
4/// # Example
5/// For the directive `Request-Rate: 1/5` is equivalent to the model `RequestRate {requests: 1, seconds: 5}`
6pub struct RequestRate {
7 pub requests: usize,
8 pub seconds: usize,
9}