pub struct CrawlerConfig {
pub user_agent: String,
pub page_buffer: usize,
pub throttle: Option<Throttle>,
pub num_workers: usize,
pub on_dl_error: OnError,
pub on_xml_error: OnError,
pub on_scrap_error: OnError,
pub robot: Option<String>,
}
Fields§
§user_agent: String
§page_buffer: usize
§throttle: Option<Throttle>
§num_workers: usize
§on_dl_error: OnError
§on_xml_error: OnError
§on_scrap_error: OnError
§robot: Option<String>
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 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