pub struct SkippedUrl {
pub url: String,
pub reason: SkipReason,
}Expand description
A skipped URL candidate.
This stores a string rather than a Url so unparseable raw inputs can be reported.
§Examples
use millipede_core::enqueue::{SkipReason, SkippedUrl};
let skipped = SkippedUrl {
url: "http://[".to_owned(),
reason: SkipReason::InvalidUrl,
};
assert_eq!(skipped.reason, SkipReason::InvalidUrl);Fields§
§url: StringOriginal URL text or duplicate unique key.
reason: SkipReasonWhy the candidate was skipped.
Trait Implementations§
Source§impl Clone for SkippedUrl
impl Clone for SkippedUrl
Source§fn clone(&self) -> SkippedUrl
fn clone(&self) -> SkippedUrl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SkippedUrl
impl RefUnwindSafe for SkippedUrl
impl Send for SkippedUrl
impl Sync for SkippedUrl
impl Unpin for SkippedUrl
impl UnsafeUnpin for SkippedUrl
impl UnwindSafe for SkippedUrl
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