pub struct CrawlerConfig {
pub max_concurrency: usize,
pub requests_per_second: f64,
pub respect_robots_txt: bool,
pub user_agent: String,
pub default_max_depth: u32,
pub default_max_pages: u32,
pub proxy: Option<String>,
pub job_ttl_secs: u64,
}Fields§
§max_concurrency: usize§requests_per_second: f64§respect_robots_txt: bool§user_agent: String§default_max_depth: u32§default_max_pages: u32§proxy: Option<String>HTTP/HTTPS proxy URL (e.g. “http://proxy:8080”)
job_ttl_secs: u64TTL in seconds for completed crawl jobs before cleanup (default: 3600)
Trait Implementations§
Source§impl Clone for CrawlerConfig
impl Clone for CrawlerConfig
Source§fn clone(&self) -> CrawlerConfig
fn clone(&self) -> CrawlerConfig
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 CrawlerConfig
impl Debug for CrawlerConfig
Source§impl Default for CrawlerConfig
impl Default for CrawlerConfig
Source§impl<'de> Deserialize<'de> for CrawlerConfig
impl<'de> Deserialize<'de> for CrawlerConfig
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 CrawlerConfig
impl RefUnwindSafe for CrawlerConfig
impl Send for CrawlerConfig
impl Sync for CrawlerConfig
impl Unpin for CrawlerConfig
impl UnsafeUnpin for CrawlerConfig
impl UnwindSafe for CrawlerConfig
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