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,
}Will be extracted to mockforge-intelligence crate
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: boolWill be extracted to mockforge-intelligence crate
Whether deterministic mode is enabled
mode: FreezeModeWill be extracted to mockforge-intelligence crate
Freeze mode: auto (freeze immediately) or manual (require explicit action)
auto_freeze: boolWill be extracted to mockforge-intelligence crate
Automatically freeze AI-generated artifacts after creation (deprecated: use mode instead, but kept for backward compatibility)
freeze_format: StringWill be extracted to mockforge-intelligence crate
Format for frozen artifacts (yaml or json)
freeze_directory: StringWill be extracted to mockforge-intelligence crate
Directory to store frozen artifacts
track_metadata: boolWill be extracted to mockforge-intelligence crate
Whether to track metadata (LLM version, prompt hash, output hash)
Implementationsยง
Sourceยงimpl DeterministicModeConfig
impl DeterministicModeConfig
Sourcepub fn is_auto_freeze_enabled(&self) -> bool
๐Deprecated: Will be extracted to mockforge-intelligence crate
pub fn is_auto_freeze_enabled(&self) -> bool
Will be extracted to mockforge-intelligence crate
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
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Sourceยงimpl JsonSchema for DeterministicModeConfig
impl JsonSchema for DeterministicModeConfig
Sourceยงfn schema_name() -> String
fn schema_name() -> String
Sourceยงfn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Sourceยงfn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Sourceยงfn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto 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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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