pub enum OutputLayout {
Bundled,
Modular,
Split,
}Expand description
How generated files are laid out on disk.
§YAML values
bundled— everything in a single file (e.g.,src/index.ts)modular— separate files per concern (default, recommended)split— separate files per operation group (requiressplit_by)
Variants§
Bundled
All types, client, and utilities concatenated into one output file.
Produces src/index.ts (TS) or a single combined Python module.
Scaffold files (package.json, tsconfig, etc.) are still separate.
Modular
Separate files per concern. This is the default and recommended layout.
TypeScript: types.ts, client.ts, sse.ts, guards.ts, index.ts.
Python: models.py, routes.py, sse.py, app.py.
Split
Separate files per operation group, determined by split_by.
For example, with split_by: tag: src/pets.ts, src/users.ts, etc.
Each file contains the types, client methods, and utilities for that group.
Trait Implementations§
Source§impl Clone for OutputLayout
impl Clone for OutputLayout
Source§fn clone(&self) -> OutputLayout
fn clone(&self) -> OutputLayout
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 OutputLayout
impl Debug for OutputLayout
Source§impl<'de> Deserialize<'de> for OutputLayout
impl<'de> Deserialize<'de> for OutputLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OutputLayout
impl PartialEq for OutputLayout
impl Copy for OutputLayout
impl Eq for OutputLayout
impl StructuralPartialEq for OutputLayout
Auto Trait Implementations§
impl Freeze for OutputLayout
impl RefUnwindSafe for OutputLayout
impl Send for OutputLayout
impl Sync for OutputLayout
impl Unpin for OutputLayout
impl UnsafeUnpin for OutputLayout
impl UnwindSafe for OutputLayout
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.