pub struct RuntimeDaemonConfig {
pub enabled: bool,
pub auto_create_on_404: bool,
pub ai_generation: bool,
pub generate_types: bool,
pub generate_client_stubs: bool,
pub update_openapi: bool,
pub create_scenario: bool,
pub workspace_dir: Option<String>,
pub exclude_patterns: Vec<String>,
}Expand description
Configuration for the runtime daemon
Fields§
§enabled: boolWhether the runtime daemon is enabled
auto_create_on_404: boolWhether to auto-create mocks on 404 responses
ai_generation: boolWhether to use AI generation for mock responses
generate_types: boolWhether to generate types (TypeScript/JSON schema)
generate_client_stubs: boolWhether to generate client stubs
update_openapi: boolWhether to update OpenAPI schema automatically
create_scenario: boolWhether to create scenarios automatically
workspace_dir: Option<String>Workspace directory for saving generated mocks
exclude_patterns: Vec<String>Patterns to exclude from auto-generation (e.g., [“/health”, “/metrics”])
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeDaemonConfig
impl Clone for RuntimeDaemonConfig
Source§fn clone(&self) -> RuntimeDaemonConfig
fn clone(&self) -> RuntimeDaemonConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RuntimeDaemonConfig
impl Debug for RuntimeDaemonConfig
Source§impl Default for RuntimeDaemonConfig
impl Default for RuntimeDaemonConfig
Source§impl<'de> Deserialize<'de> for RuntimeDaemonConfig
impl<'de> Deserialize<'de> for RuntimeDaemonConfig
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 RuntimeDaemonConfig
impl RefUnwindSafe for RuntimeDaemonConfig
impl Send for RuntimeDaemonConfig
impl Sync for RuntimeDaemonConfig
impl Unpin for RuntimeDaemonConfig
impl UnsafeUnpin for RuntimeDaemonConfig
impl UnwindSafe for RuntimeDaemonConfig
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