pub struct ProductConfig {Show 16 fields
pub lang: Option<String>,
pub timeout: Option<u64>,
pub artifacts_dir: Option<String>,
pub ignore_robots: Option<bool>,
pub namespace: Option<String>,
pub encryption_key: Option<String>,
pub color: Option<bool>,
pub log_level: Option<String>,
pub chrome_path: Option<String>,
pub lighthouse_path: Option<String>,
pub openrouter_api_key: Option<String>,
pub llm_base_url: Option<String>,
pub llm_model: Option<String>,
pub log_to_file: Option<bool>,
pub cache_backend: Option<String>,
pub cache_redis_url: Option<String>,
}Expand description
On-disk product configuration (TOML). Flags override these at parse time.
Fields§
§lang: Option<String>Default language override (en / pt-BR).
timeout: Option<u64>Default global timeout seconds (0 = none).
artifacts_dir: Option<String>Default artifacts directory.
ignore_robots: Option<bool>Default ignore-robots (requires explicit risk acceptance in flags still).
namespace: Option<String>Namespace for isolated state trees (optional).
encryption_key: Option<String>Optional AES key material for encrypted session state (stored in XDG config, mode 0600).
color: Option<bool>Enable ANSI colors on human stderr paths when true.
log_level: Option<String>Tracing filter level when flags are quiet/default (error/info/debug).
chrome_path: Option<String>Absolute path to Chrome/Chromium binary (XDG only; never product env).
lighthouse_path: Option<String>Absolute path to lighthouse CLI (optional).
openrouter_api_key: Option<String>Optional LLM provider API key for extract –llm (stored in XDG config mode 0600).
llm_base_url: Option<String>OpenAI-compatible API base URL (no trailing slash).
llm_model: Option<String>Default model id for extract –llm.
log_to_file: Option<bool>When true, also write rotated local logs under XDG state (never remote telemetry).
cache_backend: Option<String>Cache backend: sqlite (default layered) | memory | redis.
cache_redis_url: Option<String>Redis URL when cache_backend=redis (XDG only; never env).
Trait Implementations§
Source§impl Clone for ProductConfig
impl Clone for ProductConfig
Source§fn clone(&self) -> ProductConfig
fn clone(&self) -> ProductConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProductConfig
impl Debug for ProductConfig
Source§impl Default for ProductConfig
impl Default for ProductConfig
Source§fn default() -> ProductConfig
fn default() -> ProductConfig
Source§impl<'de> Deserialize<'de> for ProductConfig
impl<'de> Deserialize<'de> for ProductConfig
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>,
Auto Trait Implementations§
impl Freeze for ProductConfig
impl RefUnwindSafe for ProductConfig
impl Send for ProductConfig
impl Sync for ProductConfig
impl Unpin for ProductConfig
impl UnsafeUnpin for ProductConfig
impl UnwindSafe for ProductConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().