pub struct FetchedRobotsTxt { /* private fields */ }
Expand description

A model of the robots.txt file that was downloaded over the network. This model takes into account HTTP response codes when loading the robots.txt file. To work with this model you should use the trait robotparser::service::RobotsTxtService. To create this structure you should use the robotparser::parser::parse_fetched_robots_txt.

Implementations

Returns the system time when the robots.txt file was downloaded over the network.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Using the parsed robots.txt decide if useragent can fetch url.

Returns the crawl delay for this user agent as a Duration, or None if no crawl delay is defined.

Removes the request parameters from the url that were listed in the Clean-param directive. This method CHECKS that the origin of the transmitted url matches the origin of robots.txt. Returns true if the operation was applied to the passed url. In other cases it returns false. Read more

Removes the request parameters from the url that were listed in the Clean-param directive. This method DOES NOT CHECK that the origin of the transmitted url coincides with the origin of robots.txt. Read more

Returns the list of URL sitemaps that have been listed in the robots.txt file.

Returns information about the restrictions set for sending HTTP requests to the server.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more