pub struct BuildOptions {
pub decimal_mode: DecimalMode,
pub strict: bool,
}Expand description
Build-time knobs for the neutral-type → JSON Schema mapping.
Fields§
§decimal_mode: DecimalModeHow to render the decimal neutral type. JSON Schema has no native
exact-decimal, so users pick between lossless (StringPattern) and
lossy-but-ergonomic (Number).
strict: boolWhen true, an unrecognised neutral type is an error. When false, it
falls back to {} (any-JSON) so partial schemas still emit.
Trait Implementations§
Source§impl Clone for BuildOptions
impl Clone for BuildOptions
Source§fn clone(&self) -> BuildOptions
fn clone(&self) -> BuildOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuildOptions
impl Debug for BuildOptions
Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnsafeUnpin for BuildOptions
impl UnwindSafe for BuildOptions
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