pub struct ScratchpadConfig {
pub enabled: bool,
pub path: String,
}Expand description
Scratchpad configuration with enabled flag and path.
Supports both plain string (legacy) and structured object in YAML:
# Legacy (plain string) — treated as { enabled: true, path: "..." }
core:
scratchpad: ".ralph/agent/scratchpad.md"
# Structured object
core:
scratchpad:
enabled: true
path: .ralph/agent/scratchpad.mdFields§
§enabled: bool§path: StringImplementations§
Source§impl ScratchpadConfig
impl ScratchpadConfig
Sourcepub fn resolve(
hat_config: Option<&ScratchpadConfig>,
global: &ScratchpadConfig,
) -> ScratchpadConfig
pub fn resolve( hat_config: Option<&ScratchpadConfig>, global: &ScratchpadConfig, ) -> ScratchpadConfig
Resolves the effective scratchpad config for a hat run.
Resolution order: hat override → global core config → defaults.
Trait Implementations§
Source§impl Clone for ScratchpadConfig
impl Clone for ScratchpadConfig
Source§fn clone(&self) -> ScratchpadConfig
fn clone(&self) -> ScratchpadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScratchpadConfig
impl Debug for ScratchpadConfig
Source§impl Default for ScratchpadConfig
impl Default for ScratchpadConfig
Source§impl<'de> Deserialize<'de> for ScratchpadConfig
impl<'de> Deserialize<'de> for ScratchpadConfig
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
Source§impl PartialEq for ScratchpadConfig
impl PartialEq for ScratchpadConfig
Source§fn eq(&self, other: &ScratchpadConfig) -> bool
fn eq(&self, other: &ScratchpadConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScratchpadConfig
impl Serialize for ScratchpadConfig
impl StructuralPartialEq for ScratchpadConfig
Auto Trait Implementations§
impl Freeze for ScratchpadConfig
impl RefUnwindSafe for ScratchpadConfig
impl Send for ScratchpadConfig
impl Sync for ScratchpadConfig
impl Unpin for ScratchpadConfig
impl UnsafeUnpin for ScratchpadConfig
impl UnwindSafe for ScratchpadConfig
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