pub struct Config {Show 13 fields
pub enabled: bool,
pub store_raw_outputs: bool,
pub redact_secrets: bool,
pub max_raw_output_bytes: u64,
pub min_raw_tokens_to_reduce: u64,
pub max_emitted_lines_first_seen: usize,
pub max_emitted_lines_large_delta: usize,
pub max_emitted_lines_small_delta: usize,
pub small_delta_max_changed_lines: usize,
pub small_delta_max_changed_ratio: f64,
pub estimate_tokens_method: String,
pub retention_days: u32,
pub intercept: InterceptConfig,
}Fields§
§enabled: bool§store_raw_outputs: bool§redact_secrets: bool§max_raw_output_bytes: u64§min_raw_tokens_to_reduce: u64§max_emitted_lines_first_seen: usize§max_emitted_lines_large_delta: usize§max_emitted_lines_small_delta: usize§small_delta_max_changed_lines: usize§small_delta_max_changed_ratio: f64§estimate_tokens_method: String§retention_days: u32§intercept: InterceptConfigImplementations§
Source§impl Config
impl Config
Sourcepub fn load(repo_root: &Path) -> Result<Config, ConfigError>
pub fn load(repo_root: &Path) -> Result<Config, ConfigError>
Load and merge the effective config for a repo.
Sourcepub fn write_effective(&self, layout: &CacheLayout) -> Result<(), ConfigError>
pub fn write_effective(&self, layout: &CacheLayout) -> Result<(), ConfigError>
Serialize the effective config to config.effective.json for doctor.
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