pub struct Config {Show 15 fields
pub fetch: FetchConfig,
pub ssrf: SsrfConfig,
pub debug: DebugConfig,
pub cache: CacheConfig,
pub tokenizer: TokenizerConfig,
pub mcp: McpConfig,
pub output: OutputConfig,
pub rate_limit: RateLimitConfig,
pub robots: RobotsConfig,
pub summarization: SummarizationConfig,
pub backends: HashMap<String, BackendConfig>,
pub headless: HeadlessConfig,
pub image_captions: ImageCaptionsConfig,
pub captioners: BTreeMap<String, CaptionerConfig>,
pub prompt_injection: PromptInjectionConfig,
}Fields§
§fetch: FetchConfig§ssrf: SsrfConfig§debug: DebugConfig§cache: CacheConfig§tokenizer: TokenizerConfig§mcp: McpConfig§output: OutputConfig§rate_limit: RateLimitConfig§robots: RobotsConfig§summarization: SummarizationConfig§backends: HashMap<String, BackendConfig>§headless: HeadlessConfig§image_captions: ImageCaptionsConfig§captioners: BTreeMap<String, CaptionerConfig>§prompt_injection: PromptInjectionConfigImplementations§
Source§impl Config
impl Config
Sourcepub fn apply_overrides(
&mut self,
rate_limit_rpm: Option<u32>,
per_host_concurrency: Option<u32>,
global_concurrency: Option<u32>,
max_retries: Option<u8>,
ignore_robots: bool,
)
pub fn apply_overrides( &mut self, rate_limit_rpm: Option<u32>, per_host_concurrency: Option<u32>, global_concurrency: Option<u32>, max_retries: Option<u8>, ignore_robots: bool, )
Apply CLI / MCP override flags onto an already-loaded config.
Centralises the override logic shared by rover fetch, rover mcp, and
(M6) rover batch. Bypasses config::validate; concurrency widths are
clamped to >=1 to avoid Semaphore::new(0) silently hanging on acquire
(regression fix from M5 commit 02bd7e8).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more