pub struct BootConfig {
pub enabled: Option<bool>,
pub redact_titles: Option<bool>,
}Expand description
[boot] block in config.toml. Drives the privacy kill-switch +
title-redaction behaviour of ai-memory boot. Both fields default
to the historical (pre-v0.6.3.1) behaviour so existing users see no
change.
Precedence for enabled:
AI_MEMORY_BOOT_ENABLED=0 env var (truthy “0/false/no/off”) >
[boot] enabled config value > compiled default true.
Fields§
§enabled: Option<bool>Master toggle. Default true. When set to false, ai-memory boot exits 0 with empty stdout AND empty stderr — the
privacy-sensitive escape hatch for hosts where memory titles
must never enter CI logs. The hook injects nothing.
redact_titles: Option<bool>When true, the manifest header still appears but every
memory row’s title field is replaced with <redacted> —
useful for compliance contexts that need an audit trail of
“boot ran with N memories” without exposing memory subjects.
Default false.
Implementations§
Source§impl BootConfig
impl BootConfig
Sourcepub fn effective_enabled(&self) -> bool
pub fn effective_enabled(&self) -> bool
Resolve the effective enabled value with env-var precedence.
AI_MEMORY_BOOT_ENABLED=0/false/no/off forces disabled;
=1/true/yes/on forces enabled. Anything else falls through to
the config file value (or the compiled default true).
Sourcepub fn effective_redact_titles(&self) -> bool
pub fn effective_redact_titles(&self) -> bool
Resolve the effective redact_titles value. Default false.
Trait Implementations§
Source§impl Clone for BootConfig
impl Clone for BootConfig
Source§fn clone(&self) -> BootConfig
fn clone(&self) -> BootConfig
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 BootConfig
impl Debug for BootConfig
Source§impl Default for BootConfig
impl Default for BootConfig
Source§fn default() -> BootConfig
fn default() -> BootConfig
Source§impl<'de> Deserialize<'de> for BootConfig
impl<'de> Deserialize<'de> for BootConfig
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 BootConfig
impl RefUnwindSafe for BootConfig
impl Send for BootConfig
impl Sync for BootConfig
impl Unpin for BootConfig
impl UnsafeUnpin for BootConfig
impl UnwindSafe for BootConfig
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
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<T> ErasedDestructor for Twhere
T: 'static,
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 more