pub struct CodeGenSettings {
pub model_name_source: ModelNameSource,
pub dedupe_mode: DedupeMode,
}Expand description
Language-agnostic code generation settings.
Fields§
§model_name_source: ModelNameSourceWhich source to prefer for struct/type names: title or property key.
dedupe_mode: DedupeModeWhether and how to deduplicate identical object schemas (Disabled, Functional, Full).
Implementations§
Source§impl CodeGenSettings
impl CodeGenSettings
Sourcepub fn builder() -> CodeGenSettingsBuilder
pub fn builder() -> CodeGenSettingsBuilder
Start a builder with all options unset (per-option defaults will be used on build).
Trait Implementations§
Source§impl Clone for CodeGenSettings
impl Clone for CodeGenSettings
Source§fn clone(&self) -> CodeGenSettings
fn clone(&self) -> CodeGenSettings
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 CodeGenSettings
impl Debug for CodeGenSettings
Source§impl Default for CodeGenSettings
impl Default for CodeGenSettings
Source§impl PartialEq for CodeGenSettings
impl PartialEq for CodeGenSettings
impl Eq for CodeGenSettings
impl StructuralPartialEq for CodeGenSettings
Auto Trait Implementations§
impl Freeze for CodeGenSettings
impl RefUnwindSafe for CodeGenSettings
impl Send for CodeGenSettings
impl Sync for CodeGenSettings
impl Unpin for CodeGenSettings
impl UnsafeUnpin for CodeGenSettings
impl UnwindSafe for CodeGenSettings
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