pub struct OpenApiParserOptionsBuilder { /* private fields */ }Expand description
Builder for OpenApiParserOptions
Implementations§
Source§impl OpenApiParserOptionsBuilder
impl OpenApiParserOptionsBuilder
Sourcepub fn generate_client(self, value: bool) -> Self
pub fn generate_client(self, value: bool) -> Self
Set whether to generate API client traits
Sourcepub fn generate_validation(self, value: bool) -> Self
pub fn generate_validation(self, value: bool) -> Self
Set whether to generate validation
Sourcepub fn derive_serde(self, value: bool) -> Self
pub fn derive_serde(self, value: bool) -> Self
Set whether to derive serde traits
Sourcepub fn derive_default(self, value: bool) -> Self
pub fn derive_default(self, value: bool) -> Self
Set whether to derive Default trait
Sourcepub fn make_fields_optional(self, value: bool) -> Self
pub fn make_fields_optional(self, value: bool) -> Self
Set whether to make all fields optional
Set tags to include
Set tags to exclude
Sourcepub fn generate_builders(self, value: bool) -> Self
pub fn generate_builders(self, value: bool) -> Self
Set whether to generate builder patterns
Sourcepub fn generate_docs(self, value: bool) -> Self
pub fn generate_docs(self, value: bool) -> Self
Set whether to generate documentation
Sourcepub fn type_prefix(self, prefix: impl Into<String>) -> Self
pub fn type_prefix(self, prefix: impl Into<String>) -> Self
Set type name prefix
Sourcepub fn type_suffix(self, suffix: impl Into<String>) -> Self
pub fn type_suffix(self, suffix: impl Into<String>) -> Self
Set type name suffix
Sourcepub fn module_name(self, name: impl Into<String>) -> Self
pub fn module_name(self, name: impl Into<String>) -> Self
Set module name
Sourcepub fn build(self) -> OpenApiParserOptions
pub fn build(self) -> OpenApiParserOptions
Build the options
Trait Implementations§
Source§impl Debug for OpenApiParserOptionsBuilder
impl Debug for OpenApiParserOptionsBuilder
Source§impl Default for OpenApiParserOptionsBuilder
impl Default for OpenApiParserOptionsBuilder
Source§fn default() -> OpenApiParserOptionsBuilder
fn default() -> OpenApiParserOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenApiParserOptionsBuilder
impl RefUnwindSafe for OpenApiParserOptionsBuilder
impl Send for OpenApiParserOptionsBuilder
impl Sync for OpenApiParserOptionsBuilder
impl Unpin for OpenApiParserOptionsBuilder
impl UnsafeUnpin for OpenApiParserOptionsBuilder
impl UnwindSafe for OpenApiParserOptionsBuilder
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