pub struct ApplicationConfig {
pub max_crawl_depth: usize,
pub crawl_delay_ms: u64,
pub max_concurrent_requests: usize,
pub user_agent: String,
pub allowed_domains: Vec<String>,
pub periodic_index_interval_days: u64,
pub duplicate_removal_interval_hours: u64,
pub admin_api_key: String,
}
Expand description
Application-specific configuration.
Contains settings for web crawling behavior and operational parameters.
Fields§
§max_crawl_depth: usize
Maximum depth to crawl from starting URLs
crawl_delay_ms: u64
Delay between requests in milliseconds
max_concurrent_requests: usize
Maximum number of concurrent crawling requests
user_agent: String
User-Agent string for HTTP requests
allowed_domains: Vec<String>
List of domains allowed for crawling
periodic_index_interval_days: u64
Interval between periodic re-indexing in days
duplicate_removal_interval_hours: u64
Interval between duplicate removal runs in hours
admin_api_key: String
API key required for admin endpoints (force indexing, stats)
Trait Implementations§
Source§impl Clone for ApplicationConfig
impl Clone for ApplicationConfig
Source§fn clone(&self) -> ApplicationConfig
fn clone(&self) -> ApplicationConfig
Returns a copy 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 ApplicationConfig
impl Debug for ApplicationConfig
Source§impl<'de> Deserialize<'de> for ApplicationConfig
impl<'de> Deserialize<'de> for ApplicationConfig
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 ApplicationConfig
impl RefUnwindSafe for ApplicationConfig
impl Send for ApplicationConfig
impl Sync for ApplicationConfig
impl Unpin for ApplicationConfig
impl UnwindSafe for ApplicationConfig
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