pub struct NormalizerConfig {
pub max_inline_depth: usize,
pub max_inline_size: usize,
pub keep_definitions: bool,
pub remove_metadata: bool,
}Available on crate feature
schema-generation only.Expand description
Configuration for schema normalization
Fields§
§max_inline_depth: usizeMaximum depth for inlining references (default: 10)
max_inline_size: usizeMaximum size in bytes for inlined schemas (default: 100KB)
keep_definitions: boolWhether to keep definitions section (default: false)
remove_metadata: boolWhether to remove schema metadata like $schema, $id (default: true)
Trait Implementations§
Source§impl Clone for NormalizerConfig
impl Clone for NormalizerConfig
Source§impl Debug for NormalizerConfig
impl Debug for NormalizerConfig
Auto Trait Implementations§
impl Freeze for NormalizerConfig
impl RefUnwindSafe for NormalizerConfig
impl Send for NormalizerConfig
impl Sync for NormalizerConfig
impl Unpin for NormalizerConfig
impl UnsafeUnpin for NormalizerConfig
impl UnwindSafe for NormalizerConfig
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