pub struct RobotsDiagnostics {
pub url: String,
pub robots_url: String,
pub fetch_status: FetchStatus,
pub groups_count: usize,
pub matched_agents: Vec<String>,
pub applicable_rules: Vec<Rule>,
pub decision: Decision,
}Expand description
Diagnostics for debugging robots.txt decisions.
Fields§
§url: StringThe URL being checked.
robots_url: StringThe robots.txt URL.
fetch_status: FetchStatusFetch status of robots.txt.
groups_count: usizeNumber of groups in the policy.
matched_agents: Vec<String>User-agents that matched.
applicable_rules: Vec<Rule>Rules that apply to this user-agent.
decision: DecisionFinal decision.
Trait Implementations§
Source§impl Clone for RobotsDiagnostics
impl Clone for RobotsDiagnostics
Source§fn clone(&self) -> RobotsDiagnostics
fn clone(&self) -> RobotsDiagnostics
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 moreAuto Trait Implementations§
impl Freeze for RobotsDiagnostics
impl RefUnwindSafe for RobotsDiagnostics
impl Send for RobotsDiagnostics
impl Sync for RobotsDiagnostics
impl Unpin for RobotsDiagnostics
impl UnwindSafe for RobotsDiagnostics
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