pub enum CrawlScope {
Auto,
Exact,
Parent,
Domain,
}Expand description
crawl 的路径范围。
Variants§
Auto
先取种子所在的最窄目录;种子页看起来是叶子页(几乎没有子页链接、却链向很多同级页面)时放宽一级。
Exact
只取最窄目录,不放宽。
Parent
一开始就放宽到上一级目录(不会到整站根)。
Domain
整个主机,等同于 crawlEntireDomain。
Trait Implementations§
Source§impl Clone for CrawlScope
impl Clone for CrawlScope
impl Copy for CrawlScope
Source§impl Debug for CrawlScope
impl Debug for CrawlScope
Source§impl Default for CrawlScope
impl Default for CrawlScope
Source§impl<'de> Deserialize<'de> for CrawlScope
impl<'de> Deserialize<'de> for CrawlScope
Source§fn 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
impl Eq for CrawlScope
Source§impl PartialEq for CrawlScope
impl PartialEq for CrawlScope
Source§impl Serialize for CrawlScope
impl Serialize for CrawlScope
impl StructuralPartialEq for CrawlScope
Auto Trait Implementations§
impl Freeze for CrawlScope
impl RefUnwindSafe for CrawlScope
impl Send for CrawlScope
impl Sync for CrawlScope
impl Unpin for CrawlScope
impl UnsafeUnpin for CrawlScope
impl UnwindSafe for CrawlScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.