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: usizeMaximum depth to crawl from starting URLs
crawl_delay_ms: u64Delay between requests in milliseconds
max_concurrent_requests: usizeMaximum number of concurrent crawling requests
user_agent: StringUser-Agent string for HTTP requests
allowed_domains: Vec<String>List of domains allowed for crawling
periodic_index_interval_days: u64Interval between periodic re-indexing in days
duplicate_removal_interval_hours: u64Interval between duplicate removal runs in hours
admin_api_key: StringAPI 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