pub struct CrawlStartParams {Show 14 fields
pub url: String,
pub name: Option<String>,
pub extract_mode: Option<String>,
pub extract_schema: Option<Value>,
pub persona_id: Option<i64>,
pub include_paths: Option<Vec<String>>,
pub exclude_paths: Option<Vec<String>>,
pub max_depth: Option<i64>,
pub page_budget: Option<i64>,
pub max_concurrent: Option<i64>,
pub delay_ms: Option<i64>,
pub respect_robots: Option<bool>,
pub same_domain: Option<bool>,
pub allow_subdomains: Option<bool>,
}Expand description
Body for POST /v1/crawl — start a Dragnet whole-site crawl. Only url is
required (empty → the daemon 400s); every unset optional field is omitted
from the wire body so the daemon fills its documented default.
Fields§
§url: StringSeed URL to crawl from (required).
name: Option<String>Human label for the crawl (defaults daemon-side).
extract_mode: Option<String>"markdown" (default) | "schema".
extract_schema: Option<Value>JSON schema object driving schema extraction.
persona_id: Option<i64>Persona to crawl as.
include_paths: Option<Vec<String>>Path-regex allowlist.
exclude_paths: Option<Vec<String>>Path-regex denylist.
max_depth: Option<i64>Max link depth from the seed (default 3).
page_budget: Option<i64>Hard cap on pages fetched (default 500).
max_concurrent: Option<i64>In-process worker cap (default 4).
delay_ms: Option<i64>Politeness delay between fetches, ms (default 250).
respect_robots: Option<bool>Honor robots.txt (default true).
same_domain: Option<bool>Stay on the seed’s domain (default true).
allow_subdomains: Option<bool>Allow subdomains of the seed domain (default true).
Trait Implementations§
Source§impl Clone for CrawlStartParams
impl Clone for CrawlStartParams
Source§fn clone(&self) -> CrawlStartParams
fn clone(&self) -> CrawlStartParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CrawlStartParams
impl Debug for CrawlStartParams
Source§impl Default for CrawlStartParams
impl Default for CrawlStartParams
Source§fn default() -> CrawlStartParams
fn default() -> CrawlStartParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrawlStartParams
impl RefUnwindSafe for CrawlStartParams
impl Send for CrawlStartParams
impl Sync for CrawlStartParams
impl Unpin for CrawlStartParams
impl UnsafeUnpin for CrawlStartParams
impl UnwindSafe for CrawlStartParams
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