pub struct CodegenConfig {
pub mock_data_strategy: MockDataStrategy,
pub port: Option<u16>,
pub enable_cors: bool,
pub default_delay_ms: Option<u64>,
}๐Deprecated:
Will be extracted to mockforge-import crate
Expand description
Configuration for code generation
Fieldsยง
ยงmock_data_strategy: MockDataStrategy๐Deprecated:
Will be extracted to mockforge-import crate
Generate mock data strategy
port: Option<u16>๐Deprecated:
Will be extracted to mockforge-import crate
Server port (for generated code)
enable_cors: bool๐Deprecated:
Will be extracted to mockforge-import crate
Enable CORS
default_delay_ms: Option<u64>๐Deprecated:
Will be extracted to mockforge-import crate
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 UnsafeUnpin 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
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>
Converts
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>
Converts
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