pub struct Generator { /* private fields */ }Expand description
Main entry point for generating OpenAPI definitions. Main entry point for generating OpenAPI definitions.
Implementations§
Source§impl Generator
impl Generator
Sourcepub fn with_config(self, config: Config) -> Self
pub fn with_config(self, config: Config) -> Self
Configures the generator from a Config object.
Sourcepub fn output_schemas<P: Into<PathBuf>>(self, path: P) -> Self
pub fn output_schemas<P: Into<PathBuf>>(self, path: P) -> Self
Appends an output file path for just the schemas.
Sourcepub fn output_paths<P: Into<PathBuf>>(self, path: P) -> Self
pub fn output_paths<P: Into<PathBuf>>(self, path: P) -> Self
Appends an output file path for just the paths.
Sourcepub fn output_fragments<P: Into<PathBuf>>(self, path: P) -> Self
pub fn output_fragments<P: Into<PathBuf>>(self, path: P) -> Self
Appends an output file path for full spec minus root details (fragments).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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