pub enum Layout {
SingleFile,
Files,
}Expand description
Controls how JSON schemas are organized in output
Variants§
SingleFile
Single file with all types in $defs section (default) All type definitions are placed in a single JSON file under the definitions/$defs key.
Files
Separate .json file per type, organized by module path
Each type gets its own file like: my_module/MyType.schema.json
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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