pub struct DeterministicModeConfig {
pub enabled: bool,
pub mode: FreezeMode,
pub auto_freeze: bool,
pub freeze_format: String,
pub freeze_directory: String,
pub track_metadata: bool,
}Expand description
Deterministic mode configuration
When enabled, AI-generated artifacts are frozen to deterministic YAML/JSON files for version control and reproducible testing. Supports both auto and manual freeze modes.
Fields§
§enabled: boolWhether deterministic mode is enabled
mode: FreezeModeFreeze mode: auto (freeze immediately) or manual (require explicit action)
auto_freeze: boolAutomatically freeze AI-generated artifacts after creation (deprecated: use mode instead, but kept for backward compatibility)
freeze_format: StringFormat for frozen artifacts (yaml or json)
freeze_directory: StringDirectory to store frozen artifacts
track_metadata: boolWhether to track metadata (LLM version, prompt hash, output hash)
Implementations§
Source§impl DeterministicModeConfig
impl DeterministicModeConfig
Sourcepub fn is_auto_freeze_enabled(&self) -> bool
pub fn is_auto_freeze_enabled(&self) -> bool
Check if auto-freeze is enabled (either via mode or legacy auto_freeze flag)
Trait Implementations§
Source§impl Clone for DeterministicModeConfig
impl Clone for DeterministicModeConfig
Source§fn clone(&self) -> DeterministicModeConfig
fn clone(&self) -> DeterministicModeConfig
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 DeterministicModeConfig
impl Debug for DeterministicModeConfig
Source§impl Default for DeterministicModeConfig
impl Default for DeterministicModeConfig
Source§impl<'de> Deserialize<'de> for DeterministicModeConfig
impl<'de> Deserialize<'de> for DeterministicModeConfig
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 DeterministicModeConfig
impl RefUnwindSafe for DeterministicModeConfig
impl Send for DeterministicModeConfig
impl Sync for DeterministicModeConfig
impl Unpin for DeterministicModeConfig
impl UnsafeUnpin for DeterministicModeConfig
impl UnwindSafe for DeterministicModeConfig
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