pub struct ParseWarning { /* private fields */ }
Expand description
Warning of robots.txt parser about problems when parsing robots.txt file.
Implementations§
Source§impl ParseWarning
impl ParseWarning
Sourcepub fn get_line_no(&self) -> usize
pub fn get_line_no(&self) -> usize
Returns the line number in the text of the robots.txt file.
Sourcepub fn get_line_text(&self) -> &String
pub fn get_line_text(&self) -> &String
Returns the text of the robots.txt file string.
Sourcepub fn get_reason(&self) -> &WarningReason
pub fn get_reason(&self) -> &WarningReason
Returns the reason of warning.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
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 moreSource§impl Debug for ParseWarning
impl Debug for ParseWarning
Source§impl Display for ParseWarning
Displays text of warning.
impl Display for ParseWarning
Displays text of warning.
Source§impl Error for ParseWarning
impl Error for ParseWarning
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl UnwindSafe for ParseWarning
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