pub struct SchemaConfigBuilder { /* private fields */ }Expand description
Builder for SchemaConfig
Implementations§
Source§impl SchemaConfigBuilder
impl SchemaConfigBuilder
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the schema description
Sourcepub fn include_examples(self, include: bool) -> Self
pub fn include_examples(self, include: bool) -> Self
Include example values in schema
Sourcepub fn include_metadata(self, include: bool) -> Self
pub fn include_metadata(self, include: bool) -> Self
Include metadata fields (title, description, $id)
Sourcepub fn build(self) -> SchemaConfig
pub fn build(self) -> SchemaConfig
Build the SchemaConfig
Trait Implementations§
Source§impl Debug for SchemaConfigBuilder
impl Debug for SchemaConfigBuilder
Auto Trait Implementations§
impl Freeze for SchemaConfigBuilder
impl RefUnwindSafe for SchemaConfigBuilder
impl Send for SchemaConfigBuilder
impl Sync for SchemaConfigBuilder
impl Unpin for SchemaConfigBuilder
impl UnwindSafe for SchemaConfigBuilder
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