Enum spyglass_lens::LensRule
source · [−]Expand description
Different rules that filter out the URLs that would be crawled for a lens
Variants
LimitURLDepth(String, u8)
Limits the depth of a URL to a certain depth. For example:
- LimitURLDepth(“https://example.com/”, 1) will limit it to https://example.com/<path 1>
- LimitURLDepth(“https://example.com/”, 2) will limit it to https://example.com/<path 1>/<path 2>
- etc.
SkipURL(String)
Skips are applied when bootstrapping & crawling
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for LensRule
impl<'de> Deserialize<'de> for LensRule
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for LensRule
impl Send for LensRule
impl Sync for LensRule
impl Unpin for LensRule
impl UnwindSafe for LensRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more