pub enum SplitBy {
Operation,
Tag,
Route,
}Expand description
How to split operations into groups when using OutputLayout::Split.
§YAML values
operation— one file per operation (finest granularity)tag— one file per OpenAPI tag (default, recommended)route— one file per route prefix (e.g.,/pets,/users)
Variants§
Operation
One file per operation — finest granularity. Each operation gets its own file with its types, client method, and utilities.
Tag
One file per OpenAPI tag — groups related operations together.
Maps directly to IrModule groupings from the transform pipeline.
Route
One file per route prefix — groups operations sharing the same path root.
For example, /pets and /pets/{petId} would share a file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SplitBy
impl<'de> Deserialize<'de> for SplitBy
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
impl Copy for SplitBy
impl Eq for SplitBy
impl StructuralPartialEq for SplitBy
Auto Trait Implementations§
impl Freeze for SplitBy
impl RefUnwindSafe for SplitBy
impl Send for SplitBy
impl Sync for SplitBy
impl Unpin for SplitBy
impl UnsafeUnpin for SplitBy
impl UnwindSafe for SplitBy
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.