Public declaration syntax from forge-rs/crates/forge-search/src/config.rs Original source SHA-256: 051b1817e170d5b8bfc77144e5c2cb162b13a878ad42c713cffcbd070b8d9cb9 Function bodies and constant values are omitted. This is not the complete implementation. Source line 42 #[derive(Debug, Clone, Serialize, Deserialize)] pub struct SearchConfig { } Source line 84 #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] pub enum SearchDepth { /// Fast search using SERP snippets. Basic, /// Deeper search that fetches and processes page content. Advanced, } Source line 97 pub fn as_str(&self) -> &'static str; Source line 114 #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] pub enum ContentFormat { /// Markdown format (preserves structure). Markdown, /// Plain text (no formatting). Text, } Source line 123 pub fn as_str(&self) -> &'static str; Source line 181 pub fn builder() -> SearchConfigBuilder; Source line 188 pub fn endpoint(&self) -> &str; Source line 193 pub fn api_key(&self) -> Option<&str>; Source line 200 pub fn engines(&self) -> &[String]; Source line 205 pub fn default_max_results(&self) -> u32; Source line 210 pub fn default_search_depth(&self) -> SearchDepth; Source line 215 pub fn default_content_format(&self) -> ContentFormat; Source line 220 pub fn request_timeout_ms(&self) -> u64; Source line 225 pub fn max_extract_urls(&self) -> usize; Source line 230 pub fn max_crawl_depth(&self) -> u32; Source line 235 pub fn max_crawl_breadth(&self) -> u32; Source line 240 pub fn max_crawl_pages(&self) -> u32; Source line 262 pub struct SearchConfigBuilder { } Source line 268 pub fn endpoint(mut self, endpoint: impl Into) -> Self; Source line 274 pub fn api_key(mut self, key: impl Into) -> Self; Source line 280 pub fn engines(mut self, engines: Vec) -> Self; Source line 286 pub fn default_max_results(mut self, max: u32) -> Self; Source line 292 pub fn default_search_depth(mut self, depth: SearchDepth) -> Self; Source line 298 pub fn default_content_format(mut self, format: ContentFormat) -> Self; Source line 304 pub fn request_timeout_ms(mut self, ms: u64) -> Self; Source line 310 pub fn max_crawl_depth(mut self, depth: u32) -> Self; Source line 316 pub fn build(self) -> SearchConfig;