pub struct CrawlConfig {
pub max_workers: usize,
pub max_depth: u32,
pub user_agent: String,
pub respect_robots_txt: bool,
pub politeness: PolitenessConfig,
pub timeout_ms: u64,
pub max_retries: u32,
}
Fields§
§max_workers: usize
§max_depth: u32
§user_agent: String
§respect_robots_txt: bool
§politeness: PolitenessConfig
§timeout_ms: u64
§max_retries: u32
Trait Implementations§
Source§impl Clone for CrawlConfig
impl Clone for CrawlConfig
Source§fn clone(&self) -> CrawlConfig
fn clone(&self) -> CrawlConfig
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 CrawlConfig
impl Debug for CrawlConfig
Source§impl Default for CrawlConfig
impl Default for CrawlConfig
Source§impl<'de> Deserialize<'de> for CrawlConfig
impl<'de> Deserialize<'de> for CrawlConfig
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
Auto Trait Implementations§
impl Freeze for CrawlConfig
impl RefUnwindSafe for CrawlConfig
impl Send for CrawlConfig
impl Sync for CrawlConfig
impl Unpin for CrawlConfig
impl UnwindSafe for CrawlConfig
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