pub struct GeneratorBuilder { /* private fields */ }Expand description
Builder for configuring and creating a Generator.
Implementations§
Source§impl GeneratorBuilder
impl GeneratorBuilder
Sourcepub fn from_file(path: &Path) -> Result<Self>
pub fn from_file(path: &Path) -> Result<Self>
Create a builder by loading an OpenAPI spec from a file.
Sourcepub fn settings(self, settings: TypeSpaceSettings) -> Self
pub fn settings(self, settings: TypeSpaceSettings) -> Self
Set custom type space settings.
Sourcepub fn type_overrides(self, overrides: TypeOverrides) -> Self
pub fn type_overrides(self, overrides: TypeOverrides) -> Self
Set type overrides for generated types.
Sourcepub fn response_suffixes(self, suffixes: ResponseSuffixes) -> Self
pub fn response_suffixes(self, suffixes: ResponseSuffixes) -> Self
Set response suffixes configuration.
Sourcepub fn schema_renames(self, renames: HashMap<String, String>) -> Self
pub fn schema_renames(self, renames: HashMap<String, String>) -> Self
Set schema renames (original name → new name).
Auto Trait Implementations§
impl Freeze for GeneratorBuilder
impl RefUnwindSafe for GeneratorBuilder
impl !Send for GeneratorBuilder
impl !Sync for GeneratorBuilder
impl Unpin for GeneratorBuilder
impl UnsafeUnpin for GeneratorBuilder
impl UnwindSafe for GeneratorBuilder
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