pub struct CodegenConfig {
pub mock_data_strategy: MockDataStrategy,
pub port: Option<u16>,
pub enable_cors: bool,
pub default_delay_ms: Option<u64>,
}Expand description
Configuration for code generation
Fields§
§mock_data_strategy: MockDataStrategyGenerate mock data strategy
port: Option<u16>Server port (for generated code)
enable_cors: boolEnable CORS
default_delay_ms: Option<u64>Response delay simulation (milliseconds)
Trait Implementations§
Source§impl Clone for CodegenConfig
impl Clone for CodegenConfig
Source§fn clone(&self) -> CodegenConfig
fn clone(&self) -> CodegenConfig
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 CodegenConfig
impl Debug for CodegenConfig
Source§impl Default for CodegenConfig
impl Default for CodegenConfig
Source§fn default() -> CodegenConfig
fn default() -> CodegenConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodegenConfig
impl RefUnwindSafe for CodegenConfig
impl Send for CodegenConfig
impl Sync for CodegenConfig
impl Unpin for CodegenConfig
impl UnwindSafe for CodegenConfig
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