pub struct GenerateOutput {
pub source_files: Vec<GeneratedFile>,
pub scaffold_files: Vec<GeneratedFile>,
}Expand description
Output from engine::generate(), separating source files (always overwritten)
from scaffold files (write-once by default).
Fields§
§source_files: Vec<GeneratedFile>Source files derived from the OpenAPI spec — always overwritten on each run.
scaffold_files: Vec<GeneratedFile>Project scaffold files (package.json, tsconfig, etc.) — only written if they
don’t already exist on disk. Use --force-scaffold to override.
Trait Implementations§
Source§impl Clone for GenerateOutput
impl Clone for GenerateOutput
Source§fn clone(&self) -> GenerateOutput
fn clone(&self) -> GenerateOutput
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 moreAuto Trait Implementations§
impl Freeze for GenerateOutput
impl RefUnwindSafe for GenerateOutput
impl Send for GenerateOutput
impl Sync for GenerateOutput
impl Unpin for GenerateOutput
impl UnsafeUnpin for GenerateOutput
impl UnwindSafe for GenerateOutput
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